Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.xqRTxJ Ausführung(%build): /bin/sh -e /var/tmp/rpm-tmp.ID5ILc running build running build_py creating build creating build/lib copying src/pytest.py -> build/lib creating build/lib/_pytest copying src/_pytest/nose.py -> build/lib/_pytest copying src/_pytest/outcomes.py -> build/lib/_pytest copying src/_pytest/unittest.py -> build/lib/_pytest copying src/_pytest/warnings.py -> build/lib/_pytest copying src/_pytest/reports.py -> build/lib/_pytest copying src/_pytest/tmpdir.py -> build/lib/_pytest copying src/_pytest/deprecated.py -> build/lib/_pytest copying src/_pytest/resultlog.py -> build/lib/_pytest copying src/_pytest/pytester.py -> build/lib/_pytest copying src/_pytest/terminal.py -> build/lib/_pytest copying src/_pytest/doctest.py -> build/lib/_pytest copying src/_pytest/hookspec.py -> build/lib/_pytest copying src/_pytest/fixtures.py -> build/lib/_pytest copying src/_pytest/python_api.py -> build/lib/_pytest copying src/_pytest/cacheprovider.py -> build/lib/_pytest copying src/_pytest/_argcomplete.py -> build/lib/_pytest copying src/_pytest/debugging.py -> build/lib/_pytest copying src/_pytest/stepwise.py -> build/lib/_pytest copying src/_pytest/monkeypatch.py -> build/lib/_pytest copying src/_pytest/setupplan.py -> build/lib/_pytest copying src/_pytest/logging.py -> build/lib/_pytest copying src/_pytest/recwarn.py -> build/lib/_pytest copying src/_pytest/freeze_support.py -> build/lib/_pytest copying src/_pytest/skipping.py -> build/lib/_pytest copying src/_pytest/nodes.py -> build/lib/_pytest copying src/_pytest/pathlib.py -> build/lib/_pytest copying src/_pytest/runner.py -> build/lib/_pytest copying src/_pytest/_version.py -> build/lib/_pytest copying src/_pytest/setuponly.py -> build/lib/_pytest copying src/_pytest/compat.py -> build/lib/_pytest copying src/_pytest/main.py -> build/lib/_pytest copying src/_pytest/junitxml.py -> build/lib/_pytest copying src/_pytest/warning_types.py -> build/lib/_pytest copying src/_pytest/__init__.py -> build/lib/_pytest copying src/_pytest/helpconfig.py -> build/lib/_pytest copying src/_pytest/python.py -> build/lib/_pytest copying src/_pytest/capture.py -> build/lib/_pytest copying src/_pytest/pastebin.py -> build/lib/_pytest creating build/lib/_pytest/assertion copying src/_pytest/assertion/truncate.py -> build/lib/_pytest/assertion copying src/_pytest/assertion/util.py -> build/lib/_pytest/assertion copying src/_pytest/assertion/rewrite.py -> build/lib/_pytest/assertion copying src/_pytest/assertion/__init__.py -> build/lib/_pytest/assertion creating build/lib/_pytest/_code copying src/_pytest/_code/code.py -> build/lib/_pytest/_code copying src/_pytest/_code/__init__.py -> build/lib/_pytest/_code copying src/_pytest/_code/source.py -> build/lib/_pytest/_code copying src/_pytest/_code/_py2traceback.py -> build/lib/_pytest/_code creating build/lib/_pytest/mark copying src/_pytest/mark/evaluate.py -> build/lib/_pytest/mark copying src/_pytest/mark/structures.py -> build/lib/_pytest/mark copying src/_pytest/mark/legacy.py -> build/lib/_pytest/mark copying src/_pytest/mark/__init__.py -> build/lib/_pytest/mark creating build/lib/_pytest/config copying src/_pytest/config/argparsing.py -> build/lib/_pytest/config copying src/_pytest/config/exceptions.py -> build/lib/_pytest/config copying src/_pytest/config/__init__.py -> build/lib/_pytest/config copying src/_pytest/config/findpaths.py -> build/lib/_pytest/config running build running build_py copying src/_pytest/_version.py -> build/lib/_pytest make: Entering directory '/home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/doc/en' /usr/bin/sphinx-build-3 -b html -d _build/doctrees . _build/html Running Sphinx v1.7.5 making output directory... loading pickled environment... not yet created loading intersphinx inventory from https://docs.python.org/3/objects.inv... building [mo]: targets for 0 po files that are out of date building [html]: targets for 139 source files that are out of date updating environment: 139 added, 0 changed, 0 removed reading sources... [ 0%] adopt reading sources... [ 1%] announce/index reading sources... [ 2%] announce/release-2.0.0 reading sources... [ 2%] announce/release-2.0.1 reading sources... [ 3%] announce/release-2.0.2 reading sources... [ 4%] announce/release-2.0.3 reading sources... [ 5%] announce/release-2.1.0 reading sources... [ 5%] announce/release-2.1.1 reading sources... [ 6%] announce/release-2.1.2 reading sources... [ 7%] announce/release-2.1.3 reading sources... [ 7%] announce/release-2.2.0 reading sources... [ 8%] announce/release-2.2.1 reading sources... [ 9%] announce/release-2.2.2 reading sources... [ 10%] announce/release-2.2.4 reading sources... [ 10%] announce/release-2.3.0 reading sources... [ 11%] announce/release-2.3.1 reading sources... [ 12%] announce/release-2.3.2 reading sources... [ 12%] announce/release-2.3.3 reading sources... [ 13%] announce/release-2.3.4 reading sources... [ 14%] announce/release-2.3.5 reading sources... [ 15%] announce/release-2.4.0 reading sources... [ 15%] announce/release-2.4.1 reading sources... [ 16%] announce/release-2.4.2 reading sources... [ 17%] announce/release-2.5.0 reading sources... [ 17%] announce/release-2.5.1 reading sources... [ 18%] announce/release-2.5.2 reading sources... [ 19%] announce/release-2.6.0 reading sources... [ 20%] announce/release-2.6.1 reading sources... [ 20%] announce/release-2.6.2 reading sources... [ 21%] announce/release-2.6.3 reading sources... [ 22%] announce/release-2.7.0 reading sources... [ 23%] announce/release-2.7.1 reading sources... [ 23%] announce/release-2.7.2 reading sources... [ 24%] announce/release-2.8.2 reading sources... [ 25%] announce/release-2.8.3 reading sources... [ 25%] announce/release-2.8.4 reading sources... [ 26%] announce/release-2.8.5 reading sources... [ 27%] announce/release-2.8.6 reading sources... [ 28%] announce/release-2.8.7 reading sources... [ 28%] announce/release-2.9.0 reading sources... [ 29%] announce/release-2.9.1 reading sources... [ 30%] announce/release-2.9.2 reading sources... [ 30%] announce/release-3.0.0 reading sources... [ 31%] announce/release-3.0.1 reading sources... [ 32%] announce/release-3.0.2 reading sources... [ 33%] announce/release-3.0.3 reading sources... [ 33%] announce/release-3.0.4 reading sources... [ 34%] announce/release-3.0.5 reading sources... [ 35%] announce/release-3.0.6 reading sources... [ 35%] announce/release-3.0.7 reading sources... [ 36%] announce/release-3.1.0 reading sources... [ 37%] announce/release-3.1.1 reading sources... [ 38%] announce/release-3.1.2 reading sources... [ 38%] announce/release-3.1.3 reading sources... [ 39%] announce/release-3.10.0 reading sources... [ 40%] announce/release-3.2.0 reading sources... [ 41%] announce/release-3.2.1 reading sources... [ 41%] announce/release-3.2.2 reading sources... [ 42%] announce/release-3.2.3 reading sources... [ 43%] announce/release-3.2.4 reading sources... [ 43%] announce/release-3.2.5 reading sources... [ 44%] announce/release-3.3.0 reading sources... [ 45%] announce/release-3.3.1 reading sources... [ 46%] announce/release-3.3.2 reading sources... [ 46%] announce/release-3.4.0 reading sources... [ 47%] announce/release-3.4.1 reading sources... [ 48%] announce/release-3.4.2 reading sources... [ 48%] announce/release-3.5.0 reading sources... [ 49%] announce/release-3.5.1 reading sources... [ 50%] announce/release-3.6.0 reading sources... [ 51%] announce/release-3.6.1 reading sources... [ 51%] announce/release-3.6.2 reading sources... [ 52%] announce/release-3.6.3 reading sources... [ 53%] announce/release-3.6.4 reading sources... [ 53%] announce/release-3.7.0 reading sources... [ 54%] announce/release-3.7.1 reading sources... [ 55%] announce/release-3.7.2 reading sources... [ 56%] announce/release-3.7.3 reading sources... [ 56%] announce/release-3.7.4 reading sources... [ 57%] announce/release-3.8.0 reading sources... [ 58%] announce/release-3.8.1 reading sources... [ 58%] announce/release-3.8.2 reading sources... [ 59%] announce/release-3.9.0 reading sources... [ 60%] announce/release-3.9.1 reading sources... [ 61%] announce/release-3.9.2 reading sources... [ 61%] announce/release-3.9.3 reading sources... [ 62%] announce/sprint2016 reading sources... [ 63%] assert reading sources... [ 64%] backwards-compatibility reading sources... [ 64%] bash-completion reading sources... [ 65%] builtin reading sources... [ 66%] cache reading sources... [ 66%] capture reading sources... [ 67%] changelog reading sources... [ 68%] contact reading sources... [ 69%] contents reading sources... [ 69%] contributing reading sources... [ 70%] customize reading sources... [ 71%] deprecations reading sources... [ 71%] development_guide reading sources... [ 72%] doctest reading sources... [ 73%] example/index reading sources... [ 74%] example/markers reading sources... [ 74%] example/nonpython reading sources... [ 75%] example/parametrize reading sources... [ 76%] example/pythoncollection reading sources... [ 76%] example/reportingdemo reading sources... [ 77%] example/simple reading sources... [ 78%] example/special reading sources... [ 79%] existingtestsuite reading sources... [ 79%] faq reading sources... [ 80%] fixture reading sources... [ 81%] flaky reading sources... [ 82%] funcarg_compare reading sources... [ 82%] getting-started reading sources... [ 83%] goodpractices reading sources... [ 84%] historical-notes reading sources... [ 84%] index reading sources... [ 85%] license reading sources... [ 86%] logging reading sources... [ 87%] mark reading sources... [ 87%] monkeypatch reading sources... [ 88%] nose reading sources... [ 89%] parametrize reading sources... [ 89%] plugins reading sources... [ 90%] projects reading sources... [ 91%] proposals/parametrize_with_fixtures reading sources... [ 92%] pythonpath reading sources... [ 92%] recwarn reading sources... [ 93%] reference reading sources... [ 94%] skipping reading sources... [ 94%] talks reading sources... [ 95%] tmpdir reading sources... [ 96%] unittest reading sources... [ 97%] usage reading sources... [ 97%] warnings reading sources... [ 98%] writing_plugins reading sources... [ 99%] xunit_setup reading sources... [100%] yieldfixture looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 0%] adopt writing output... [ 1%] announce/index writing output... [ 2%] announce/release-2.0.0 writing output... [ 2%] announce/release-2.0.1 writing output... [ 3%] announce/release-2.0.2 writing output... [ 4%] announce/release-2.0.3 writing output... [ 5%] announce/release-2.1.0 writing output... [ 5%] announce/release-2.1.1 writing output... [ 6%] announce/release-2.1.2 writing output... [ 7%] announce/release-2.1.3 writing output... [ 7%] announce/release-2.2.0 writing output... [ 8%] announce/release-2.2.1 writing output... [ 9%] announce/release-2.2.2 writing output... [ 10%] announce/release-2.2.4 writing output... [ 10%] announce/release-2.3.0 writing output... [ 11%] announce/release-2.3.1 writing output... [ 12%] announce/release-2.3.2 writing output... [ 12%] announce/release-2.3.3 writing output... [ 13%] announce/release-2.3.4 writing output... [ 14%] announce/release-2.3.5 writing output... [ 15%] announce/release-2.4.0 writing output... [ 15%] announce/release-2.4.1 writing output... [ 16%] announce/release-2.4.2 writing output... [ 17%] announce/release-2.5.0 writing output... [ 17%] announce/release-2.5.1 writing output... [ 18%] announce/release-2.5.2 writing output... [ 19%] announce/release-2.6.0 writing output... [ 20%] announce/release-2.6.1 writing output... [ 20%] announce/release-2.6.2 writing output... [ 21%] announce/release-2.6.3 writing output... [ 22%] announce/release-2.7.0 writing output... [ 23%] announce/release-2.7.1 writing output... [ 23%] announce/release-2.7.2 writing output... [ 24%] announce/release-2.8.2 writing output... [ 25%] announce/release-2.8.3 writing output... [ 25%] announce/release-2.8.4 writing output... [ 26%] announce/release-2.8.5 writing output... [ 27%] announce/release-2.8.6 writing output... [ 28%] announce/release-2.8.7 writing output... [ 28%] announce/release-2.9.0 writing output... [ 29%] announce/release-2.9.1 writing output... [ 30%] announce/release-2.9.2 writing output... [ 30%] announce/release-3.0.0 writing output... [ 31%] announce/release-3.0.1 writing output... [ 32%] announce/release-3.0.2 writing output... [ 33%] announce/release-3.0.3 writing output... [ 33%] announce/release-3.0.4 writing output... [ 34%] announce/release-3.0.5 writing output... [ 35%] announce/release-3.0.6 writing output... [ 35%] announce/release-3.0.7 writing output... [ 36%] announce/release-3.1.0 writing output... [ 37%] announce/release-3.1.1 writing output... [ 38%] announce/release-3.1.2 writing output... [ 38%] announce/release-3.1.3 writing output... [ 39%] announce/release-3.10.0 writing output... [ 40%] announce/release-3.2.0 writing output... [ 41%] announce/release-3.2.1 writing output... [ 41%] announce/release-3.2.2 writing output... [ 42%] announce/release-3.2.3 writing output... [ 43%] announce/release-3.2.4 writing output... [ 43%] announce/release-3.2.5 writing output... [ 44%] announce/release-3.3.0 writing output... [ 45%] announce/release-3.3.1 writing output... [ 46%] announce/release-3.3.2 writing output... [ 46%] announce/release-3.4.0 writing output... [ 47%] announce/release-3.4.1 writing output... [ 48%] announce/release-3.4.2 writing output... [ 48%] announce/release-3.5.0 writing output... [ 49%] announce/release-3.5.1 writing output... [ 50%] announce/release-3.6.0 writing output... [ 51%] announce/release-3.6.1 writing output... [ 51%] announce/release-3.6.2 writing output... [ 52%] announce/release-3.6.3 writing output... [ 53%] announce/release-3.6.4 writing output... [ 53%] announce/release-3.7.0 writing output... [ 54%] announce/release-3.7.1 writing output... [ 55%] announce/release-3.7.2 writing output... [ 56%] announce/release-3.7.3 writing output... [ 56%] announce/release-3.7.4 writing output... [ 57%] announce/release-3.8.0 writing output... [ 58%] announce/release-3.8.1 writing output... [ 58%] announce/release-3.8.2 writing output... [ 59%] announce/release-3.9.0 writing output... [ 60%] announce/release-3.9.1 writing output... [ 61%] announce/release-3.9.2 writing output... [ 61%] announce/release-3.9.3 writing output... [ 62%] announce/sprint2016 writing output... [ 63%] assert writing output... [ 64%] backwards-compatibility writing output... [ 64%] bash-completion writing output... [ 65%] builtin writing output... [ 66%] cache writing output... [ 66%] capture writing output... [ 67%] changelog writing output... [ 68%] contact writing output... [ 69%] contents writing output... [ 69%] contributing writing output... [ 70%] customize writing output... [ 71%] deprecations writing output... [ 71%] development_guide writing output... [ 72%] doctest writing output... [ 73%] example/index writing output... [ 74%] example/markers writing output... [ 74%] example/nonpython writing output... [ 75%] example/parametrize writing output... [ 76%] example/pythoncollection writing output... [ 76%] example/reportingdemo writing output... [ 77%] example/simple writing output... [ 78%] example/special writing output... [ 79%] existingtestsuite writing output... [ 79%] faq writing output... [ 80%] fixture writing output... [ 81%] flaky writing output... [ 82%] funcarg_compare writing output... [ 82%] getting-started writing output... [ 83%] goodpractices writing output... [ 84%] historical-notes writing output... [ 84%] index writing output... [ 85%] license writing output... [ 86%] logging writing output... [ 87%] mark writing output... [ 87%] monkeypatch writing output... [ 88%] nose writing output... [ 89%] parametrize writing output... [ 89%] plugins writing output... [ 90%] projects writing output... [ 91%] proposals/parametrize_with_fixtures writing output... [ 92%] pythonpath writing output... [ 92%] recwarn writing output... [ 93%] reference writing output... [ 94%] skipping writing output... [ 94%] talks writing output... [ 95%] tmpdir writing output... [ 96%] unittest writing output... [ 97%] usage writing output... [ 97%] warnings writing output... [ 98%] writing_plugins writing output... [ 99%] xunit_setup writing output... [100%] yieldfixture generating indices... highlighting module code... [ 3%] _pytest._code.code highlighting module code... [ 6%] _pytest.assertion highlighting module code... [ 10%] _pytest.cacheprovider highlighting module code... [ 13%] _pytest.capture highlighting module code... [ 17%] _pytest.config highlighting module code... [ 20%] _pytest.config.argparsing highlighting module code... [ 24%] _pytest.doctest highlighting module code... [ 27%] _pytest.fixtures highlighting module code... [ 31%] _pytest.freeze_support highlighting module code... [ 34%] _pytest.hookspec highlighting module code... [ 37%] _pytest.junitxml highlighting module code... [ 41%] _pytest.logging highlighting module code... [ 44%] _pytest.main highlighting module code... [ 48%] _pytest.mark highlighting module code... [ 51%] _pytest.mark.structures highlighting module code... [ 55%] _pytest.monkeypatch highlighting module code... [ 58%] _pytest.nodes highlighting module code... [ 62%] _pytest.outcomes highlighting module code... [ 65%] _pytest.pytester highlighting module code... [ 68%] _pytest.python highlighting module code... [ 72%] _pytest.python_api highlighting module code... [ 75%] _pytest.recwarn highlighting module code... [ 79%] _pytest.reports highlighting module code... [ 82%] _pytest.runner highlighting module code... [ 86%] _pytest.tmpdir highlighting module code... [ 89%] _pytest.warning_types highlighting module code... [ 93%] builtins highlighting module code... [ 96%] pluggy.callers highlighting module code... [100%] pluggy.manager writing additional pages... search copying images... [ 20%] announce/../img/freiburg2.jpg copying images... [ 40%] img/gaynor3.png copying images... [ 60%] img/theuni.png copying images... [ 80%] img/cramer2.png copying images... [100%] img/keleshev.png copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded. The HTML pages are in _build/html. Build finished. The HTML pages are in _build/html. make: Leaving directory '/home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/doc/en' Ausführung(%install): /bin/sh -e /var/tmp/rpm-tmp.Lfai5g running install running install_lib creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7 creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages copying build/lib/pytest.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/nose.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/outcomes.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/unittest.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/warnings.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/reports.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/tmpdir.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark copying build/lib/_pytest/mark/evaluate.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark copying build/lib/_pytest/mark/structures.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark copying build/lib/_pytest/mark/legacy.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark copying build/lib/_pytest/mark/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark copying build/lib/_pytest/deprecated.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/resultlog.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/pytester.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/terminal.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/doctest.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/hookspec.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/fixtures.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/python_api.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/cacheprovider.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/_argcomplete.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/debugging.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config copying build/lib/_pytest/config/argparsing.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config copying build/lib/_pytest/config/exceptions.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config copying build/lib/_pytest/config/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config copying build/lib/_pytest/config/findpaths.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config copying build/lib/_pytest/stepwise.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/monkeypatch.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/setupplan.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/logging.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/recwarn.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/freeze_support.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/skipping.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code copying build/lib/_pytest/_code/code.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code copying build/lib/_pytest/_code/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code copying build/lib/_pytest/_code/source.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code copying build/lib/_pytest/_code/_py2traceback.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code copying build/lib/_pytest/nodes.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/pathlib.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/runner.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/_version.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/setuponly.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/compat.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/main.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/junitxml.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/warning_types.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/helpconfig.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/python.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest copying build/lib/_pytest/capture.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/truncate.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/util.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/rewrite.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion copying build/lib/_pytest/pastebin.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/pytest.py to pytest.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/nose.py to nose.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/outcomes.py to outcomes.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/unittest.py to unittest.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/warnings.py to warnings.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/reports.py to reports.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/tmpdir.py to tmpdir.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark/evaluate.py to evaluate.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark/structures.py to structures.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark/legacy.py to legacy.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/mark/__init__.py to __init__.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/deprecated.py to deprecated.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/resultlog.py to resultlog.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py to pytester.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/terminal.py to terminal.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/doctest.py to doctest.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/hookspec.py to hookspec.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/fixtures.py to fixtures.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/python_api.py to python_api.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/cacheprovider.py to cacheprovider.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_argcomplete.py to _argcomplete.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/debugging.py to debugging.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py to argparsing.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/exceptions.py to exceptions.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py to __init__.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/findpaths.py to findpaths.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/stepwise.py to stepwise.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/monkeypatch.py to monkeypatch.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/setupplan.py to setupplan.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/logging.py to logging.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/recwarn.py to recwarn.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/freeze_support.py to freeze_support.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/skipping.py to skipping.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code/code.py to code.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code/__init__.py to __init__.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code/source.py to source.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_code/_py2traceback.py to _py2traceback.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/nodes.py to nodes.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pathlib.py to pathlib.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/runner.py to runner.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/_version.py to _version.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/setuponly.py to setuponly.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/compat.py to compat.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/main.py to main.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/junitxml.py to junitxml.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/warning_types.py to warning_types.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/__init__.py to __init__.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py to helpconfig.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/python.py to python.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/capture.py to capture.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion/truncate.py to truncate.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion/util.py to util.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.py to rewrite.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/assertion/__init__.py to __init__.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pastebin.py to pastebin.pyc writing byte-compilation script '/tmp/tmp368Y7C.py' /usr/bin/python2 -O /tmp/tmp368Y7C.py removing /tmp/tmp368Y7C.py running install_egg_info running egg_info writing requirements to src/pytest.egg-info/requires.txt writing src/pytest.egg-info/PKG-INFO writing top-level names to src/pytest.egg-info/top_level.txt writing dependency_links to src/pytest.egg-info/dependency_links.txt writing entry points to src/pytest.egg-info/entry_points.txt reading manifest file 'src/pytest.egg-info/SOURCES.txt' writing manifest file 'src/pytest.egg-info/SOURCES.txt' Copying src/pytest.egg-info to /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/pytest-3.10.0-py2.7.egg-info running install_scripts Installing pytest script to /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/bin Installing py.test script to /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/bin running install running install_lib creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6 creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages copying build/lib/pytest.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/nose.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/outcomes.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/unittest.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/warnings.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/reports.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/tmpdir.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark copying build/lib/_pytest/mark/evaluate.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark copying build/lib/_pytest/mark/structures.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark copying build/lib/_pytest/mark/legacy.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark copying build/lib/_pytest/mark/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark copying build/lib/_pytest/deprecated.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/resultlog.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/pytester.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/terminal.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/doctest.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/hookspec.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/fixtures.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/python_api.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/cacheprovider.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/_argcomplete.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/debugging.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config copying build/lib/_pytest/config/argparsing.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config copying build/lib/_pytest/config/exceptions.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config copying build/lib/_pytest/config/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config copying build/lib/_pytest/config/findpaths.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config copying build/lib/_pytest/stepwise.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/monkeypatch.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/setupplan.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/logging.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/recwarn.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/freeze_support.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/skipping.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code copying build/lib/_pytest/_code/code.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code copying build/lib/_pytest/_code/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code copying build/lib/_pytest/_code/source.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code copying build/lib/_pytest/_code/_py2traceback.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code copying build/lib/_pytest/nodes.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/pathlib.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/runner.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/_version.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/setuponly.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/compat.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/main.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/junitxml.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/warning_types.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/helpconfig.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/python.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest copying build/lib/_pytest/capture.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest creating /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/truncate.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/util.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/rewrite.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion copying build/lib/_pytest/assertion/__init__.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion copying build/lib/_pytest/pastebin.py -> /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/pytest.py to pytest.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/nose.py to nose.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/outcomes.py to outcomes.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/unittest.py to unittest.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/warnings.py to warnings.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/reports.py to reports.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/tmpdir.py to tmpdir.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark/evaluate.py to evaluate.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark/structures.py to structures.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark/legacy.py to legacy.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/mark/__init__.py to __init__.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/deprecated.py to deprecated.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/resultlog.py to resultlog.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/pytester.py to pytester.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/terminal.py to terminal.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/doctest.py to doctest.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/hookspec.py to hookspec.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/fixtures.py to fixtures.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/python_api.py to python_api.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/cacheprovider.py to cacheprovider.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_argcomplete.py to _argcomplete.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/debugging.py to debugging.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config/argparsing.py to argparsing.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config/exceptions.py to exceptions.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config/__init__.py to __init__.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/config/findpaths.py to findpaths.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/stepwise.py to stepwise.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/monkeypatch.py to monkeypatch.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/setupplan.py to setupplan.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/logging.py to logging.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/recwarn.py to recwarn.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/freeze_support.py to freeze_support.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/skipping.py to skipping.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code/code.py to code.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code/__init__.py to __init__.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code/source.py to source.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_code/_py2traceback.py to _py2traceback.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/nodes.py to nodes.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/pathlib.py to pathlib.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/runner.py to runner.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/_version.py to _version.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/setuponly.py to setuponly.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/compat.py to compat.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/main.py to main.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/junitxml.py to junitxml.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/warning_types.py to warning_types.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/__init__.py to __init__.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/helpconfig.py to helpconfig.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/python.py to python.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/capture.py to capture.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion/truncate.py to truncate.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion/util.py to util.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion/rewrite.py to rewrite.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/assertion/__init__.py to __init__.cpython-36.pyc byte-compiling /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/_pytest/pastebin.py to pastebin.cpython-36.pyc writing byte-compilation script '/tmp/tmpp2i1nczu.py' /usr/bin/python3 /tmp/tmpp2i1nczu.py removing /tmp/tmpp2i1nczu.py running install_egg_info running egg_info writing src/pytest.egg-info/PKG-INFO writing dependency_links to src/pytest.egg-info/dependency_links.txt writing entry points to src/pytest.egg-info/entry_points.txt writing requirements to src/pytest.egg-info/requires.txt writing top-level names to src/pytest.egg-info/top_level.txt reading manifest file 'src/pytest.egg-info/SOURCES.txt' writing manifest file 'src/pytest.egg-info/SOURCES.txt' Copying src/pytest.egg-info to /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6/site-packages/pytest-3.10.0-py3.6.egg-info running install_scripts Installing py.test script to /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/bin Installing pytest script to /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/bin Bytecompiling .py files below /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python3.6 using /usr/bin/python3.6 Bytecompiling .py files below /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 Ausführung(%check): /bin/sh -e /var/tmp/rpm-tmp.9ON4vz ============================= test session starts ============================== platform linux2 -- Python 2.7.15, pytest-3.10.0, py-1.7.0, pluggy-0.7.1 rootdir: /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0, inifile: tox.ini plugins: timeout-1.2.1, hypothesis-3.44.24 timeout: 30.0s method: signal collected 2302 items testing/acceptance_test.py ............................................. [ 1%] .....x...........s....... [ 3%] testing/deprecated_test.py ...................... [ 3%] 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.......................................................... [ 17%] testing/test_collection.py ..............................x.............. [ 19%] ................. [ 19%] testing/test_compat.py ...ss... [ 20%] testing/test_config.py .........x.....s................................. [ 22%] ...................................... [ 23%] testing/test_conftest.py ............................................... [ 26%] .... [ 26%] testing/test_doctest.py ................................................ [ 28%] .................................................. [ 30%] testing/test_entry_points.py ... [ 30%] testing/test_helpconfig.py ....... [ 30%] testing/test_junitxml.py ............................................... [ 32%] .s.x...... [ 33%] testing/test_mark.py ................................................... [ 35%] ...................x.................. [ 37%] testing/test_modimport.py .............................................. [ 39%] ... [ 39%] testing/test_monkeypatch.py .................................... [ 40%] testing/test_nodes.py ......... [ 41%] testing/test_nose.py ................... [ 42%] testing/test_parseopt.py ...........................s [ 43%] testing/test_pastebin.py .... [ 43%] testing/test_pathlib.py ..................................... [ 45%] testing/test_pdb.py .....sssssssssssssssssssssss.s..s.sssssssss [ 47%] testing/test_pluginmanager.py .......................... [ 48%] testing/test_pytester.py x............................. [ 49%] testing/test_recwarn.py ...................................... [ 51%] 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 ..........s.............................s...... [ 61%] ...................................................................sss.. [ 64%] ...s [ 65%] testing/test_tmpdir.py ...........s........ [ 65%] testing/test_unittest.py ....................FFFsFFFFF.FFF.F.FFFFFFFFFFs [ 68%] FF [ 68%] testing/test_warnings.py ..FFFFsFFFFFFF......FFF....... [ 69%] testing/code/test_code.py ............... [ 70%] testing/code/test_excinfo.py ...........................F............... [ 71%] ...................................ssssss......F.. [ 74%] testing/code/test_source.py ............................................ [ 76%] ....................... [ 77%] testing/examples/test_issue519.py . [ 77%] testing/freeze/tests/test_doctest.txt . [ 77%] testing/freeze/tests/test_trivial.py .. [ 77%] testing/logging/test_fixture.py F.F....... [ 77%] testing/logging/test_formatter.py . [ 77%] testing/logging/test_reporting.py FFFFFFFFF.FFFFFFFFFFFFFFFFF..FFF [ 79%] testing/python/approx.py ......................................F........ [ 81%] .... [ 81%] testing/python/collect.py FFFFFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFFF [ 83%] FFFFFFFFF.FF.FFF..FFFFFFFFFFF.FFFFFFFF [ 84%] testing/python/fixture.py ..FFFFFFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFF [ 86%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFxFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 90%] FFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFFFFFFFFF [ 92%] testing/python/integration.py FF..xsssFFFF.FFFFFF [ 93%] testing/python/metafunc.py .................................F.FFFFFF.F.. [ 95%] .FFF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFxFFFFFFFFFFFFF [ 97%] testing/python/raises.py .....F........... [ 98%] testing/python/setup_only.py FFFFFFFFFFFFFFFFFFFFFFFF [ 99%] testing/python/setup_plan.py F [ 99%] testing/python/show_fixtures_per_test.py FFFFFF [100%] =================================== FAILURES =================================== _________ TestTrialUnittest.test_trial_testcase_runtest_not_collected __________ self = testdir = def test_trial_testcase_runtest_not_collected(self, testdir): testdir.makepyfile( """ from twisted.trial.unittest import TestCase class TC(TestCase): def test_hello(self): pass """ ) reprec = testdir.inline_run(*self.ignore_unclosed_socket_warning) reprec.assertoutcome(passed=1) testdir.makepyfile( """ from twisted.trial.unittest import TestCase class TC(TestCase): def runTest(self): pass """ ) > reprec = testdir.inline_run(*self.ignore_unclosed_socket_warning) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:423: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux2 -- Python 2.7.15, pytest-3.10.0, py-1.7.0, pluggy-0.7.1 rootdir: /tmp/pytest-of-thomas/pytest-1/test_trial_testcase_runtest_not_collected0, inifile: plugins: timeout-1.2.1, hypothesis-3.44.24 collected 1 item test_trial_testcase_runtest_not_collected.py . [100%] =============================== warnings summary =============================== test_trial_testcase_runtest_not_collected.py::TC::test_hello :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected. -- Docs: https://docs.pytest.org/en/latest/warnings.html ===================== 1 passed, 1 warnings in 0.10 seconds ===================== ______________ TestTrialUnittest.test_trial_exceptions_with_skips ______________ self = testdir = def test_trial_exceptions_with_skips(self, testdir): testdir.makepyfile( """ from twisted.trial import unittest import pytest class TC(unittest.TestCase): def test_hello(self): pytest.skip("skip_in_method") @pytest.mark.skipif("sys.version_info != 1") def test_hello2(self): pass @pytest.mark.xfail(reason="iwanto") def test_hello3(self): assert 0 def test_hello4(self): pytest.xfail("i2wanto") def test_trial_skip(self): pass test_trial_skip.skip = "trialselfskip" def test_trial_todo(self): assert 0 test_trial_todo.todo = "mytodo" def test_trial_todo_success(self): pass test_trial_todo_success.todo = "mytodo" class TC2(unittest.TestCase): def setup_class(cls): pytest.skip("skip_in_setup_class") def test_method(self): pass """ ) from _pytest.compat import _is_unittest_unexpected_success_a_failure should_fail = _is_unittest_unexpected_success_a_failure() result = testdir.runpytest("-rxs", *self.ignore_unclosed_socket_warning) result.stdout.fnmatch_lines_random( [ "*XFAIL*test_trial_todo*", "*trialselfskip*", "*skip_in_setup_class*", "*iwanto*", "*i2wanto*", "*sys.version_info*", "*skip_in_method*", "*1 failed*4 skipped*3 xfailed*" if should_fail > else "*4 skipped*3 xfail*1 xpass*", ] ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:476: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1280: in fnmatch_lines_random self._match_lines_random(lines2, fnmatch) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.LineMatcher object at 0x7f78e302c110> lines2 = ['*XFAIL*test_trial_todo*', '*trialselfskip*', '*skip_in_setup_class*', '*iwanto*', '*i2wanto*', '*sys.version_info*', ...] 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 '*XFAIL*test_trial_todo*' not found in output /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1306: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestTrialUnittest.test_trial_error ______________________ self = testdir = def test_trial_error(self, testdir): testdir.makepyfile( """ from twisted.trial.unittest import TestCase from twisted.internet.defer import Deferred from twisted.internet import reactor class TC(TestCase): def test_one(self): crash def test_two(self): def f(_): crash d = Deferred() d.addCallback(f) reactor.callLater(0.3, d.callback, None) return d def test_three(self): def f(): pass # will never get called reactor.callLater(0.3, f) # will crash at teardown def test_four(self): def f(_): reactor.callLater(0.3, f) crash d = Deferred() d.addCallback(f) reactor.callLater(0.3, d.callback, None) return d # will crash both at test time and at teardown """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*ERRORS*", "*DelayedCalls*", "*test_four*", "*NameError*crash*", "*test_one*", "*NameError*crash*", "*test_three*", "*DelayedCalls*", "*test_two*", > "*crash*", ] ) E Failed: nomatch: '*ERRORS*' E and: u'' E remains unmatched: '*ERRORS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:531: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestTrialUnittest.test_trial_testcase_skip_property ______________ self = testdir = def test_trial_testcase_skip_property(self, testdir): testpath = testdir.makepyfile( """ from twisted.trial import unittest class MyTestCase(unittest.TestCase): skip = 'dont run' def test_func(self): pass """ ) > reprec = testdir.inline_run(testpath, "-s") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:559: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestTrialUnittest.test_trial_testfunction_skip_property ____________ self = testdir = def test_trial_testfunction_skip_property(self, testdir): testpath = testdir.makepyfile( """ from twisted.trial import unittest class MyTestCase(unittest.TestCase): def test_func(self): pass test_func.skip = 'dont run' """ ) > reprec = testdir.inline_run(testpath, "-s") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:572: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestTrialUnittest.test_trial_testcase_todo_property ______________ self = testdir = def test_trial_testcase_todo_property(self, testdir): testpath = testdir.makepyfile( """ from twisted.trial import unittest class MyTestCase(unittest.TestCase): todo = 'dont run' def test_func(self): assert 0 """ ) > reprec = testdir.inline_run(testpath, "-s") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:585: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestTrialUnittest.test_trial_testfunction_todo_property ____________ self = testdir = def test_trial_testfunction_todo_property(self, testdir): testpath = testdir.makepyfile( """ from twisted.trial import unittest class MyTestCase(unittest.TestCase): def test_func(self): assert 0 test_func.todo = 'dont run' """ ) reprec = testdir.inline_run( > testpath, "-s", *self.ignore_unclosed_socket_warning ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 0x7f78e33ed850>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:650: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e2d7c790>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:693: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e44a2690>.str E + where <_pytest.pytester.LineMatcher object at 0x7f78e44a2690> = <_pytest.pytester.RunResult object at 0x7f78e1a1e790>.stdout /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:706: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*XFAIL*MyTestCase*test_failing_test_is_xfail*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:726: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*MyTestCase*test_passing_test_is_fail*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:755: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:797: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:797: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:822: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:850: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:873: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*SKIP*[1]*test_foo.py*skipping due to reasons*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:892: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*SKIP*[1]*skipping due to reasons*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:912: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:929: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:995: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78e2ea3550> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:995: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78e3e934d0> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e18689d0>.str E + where <_pytest.pytester.LineMatcher object at 0x7f78e18689d0> = <_pytest.pytester.RunResult object at 0x7f78e1ae3550>.stdout /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:1015: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*test_two does not support fixtures*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:1026: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'E UserWarning: user warning' E and: u'' E remains unmatched: u'E UserWarning: user warning' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'E UserWarning: user warning' E and: u'' E remains unmatched: u'E UserWarning: user warning' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'* 1 passed in *' E and: u'' E remains unmatched: u'* 1 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:123: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'* 1 passed in *' E and: u'' E remains unmatched: u'* 1 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:123: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 _______________________________ testdir = pyfile_with_warnings = None @pytest.mark.skipif( sys.version_info >= (3, 0), reason="warnings message is broken as it is not str instance", ) def test_py2_unicode(testdir, pyfile_with_warnings): if getattr(sys, "pypy_version_info", ())[:2] == (5, 9) and sys.platform.startswith( "win" ): pytest.xfail("fails with unicode error on PyPy2 5.9 and Windows (#2905)") testdir.makepyfile( """ # -*- coding: utf8 -*- import warnings import pytest @pytest.fixture def fix(): warnings.warn(u"测试") yield @pytest.mark.filterwarnings('always') def test_func(fix): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*== %s ==*" % WARNINGS_SUMMARY_HEADER, "*test_py2_unicode.py:8: UserWarning: \\u6d4b\\u8bd5", '*warnings.warn(u"\u6d4b\u8bd5")', "*warnings.py:*: UnicodeWarning: Warning is using unicode non*", > "* 1 passed, 2 warnings*", ] ) E Failed: nomatch: u'*== warnings summary ==*' E and: u'' E remains unmatched: u'*== warnings summary ==*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:191: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'*== warnings summary ==*' E and: u'' E remains unmatched: u'*== warnings summary ==*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:215: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'*== 1 passed in *' E and: u'' E remains unmatched: u'*== 1 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:241: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'*= 1 failed, 2 passed, 1 warnings in *' E and: u'' E remains unmatched: u'*= 1 failed, 2 passed, 1 warnings in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:274: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'*= 1 failed, 2 passed, 1 warnings in *' E and: u'' E remains unmatched: u'*= 1 failed, 2 passed, 1 warnings in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:274: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'*= 1 passed, 1 warnings in *' E and: u'' E remains unmatched: u'*= 1 passed, 1 warnings in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:289: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e19d3b10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:304: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'* 1 passed in*' E and: u'' E remains unmatched: u'* 1 passed in*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:455: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'* 1 failed in*' E and: u'' E remains unmatched: u'* 1 failed in*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:457: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'* 1 failed in*' E and: u'' E remains unmatched: u'* 1 failed in*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_warnings.py:477: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*AssertionError*Pattern*[123]*not found*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/code/test_excinfo.py:431: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '* 1 failed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/code/test_excinfo.py:1359: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*caplog*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_fixture.py:12: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*log from test1*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_fixture.py:49: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e3c360d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:23: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e422f850>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:46: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e183ee10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e3196e10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:104: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e19eff10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:134: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e3f30690>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:161: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e183d990>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:189: AssertionError ----------------------------- Captured stdout call ----------------------------- <_pytest.pytester.LineMatcher object at 0x7f78e2721cd0> ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e28f2f10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:219: AssertionError ----------------------------- Captured stdout call ----------------------------- <_pytest.pytester.LineMatcher object at 0x7f78e2721bd0> ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_cli_enabled_disabled.py::test_log_cli ' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:252: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_cli_default_level.py::test_log_cli ' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:285: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_cli_default_level_multiple_tests.py::test_log_1 ' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:323: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_cli_default_level_sections.py::test_log_1 ' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:397: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*WARNING*Unknown Section*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:459: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_sections_single_new_line_after_test_outcome.py::test_log_1 ' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:521: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_cli_level.py*This log message will be shown' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:569: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_cli_ini_level.py* This log message will be shown' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:619: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*test_log_cli_auto_enable*100%*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:669: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*test_log_cli_auto_enable*100%*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:669: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*test_log_cli_auto_enable*100%*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:669: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*::test_log_1 ' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:663: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_file_cli.py PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:697: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_file_cli_level.py PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:730: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '* 1 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:750: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_file_ini.py PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:781: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'test_log_file_ini_level.py PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:820: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e33222d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:859: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'collecting*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:928: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e2885390>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:962: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*sessionstart*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/logging/test_reporting.py:999: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*At index 0 diff: 3 != 4 * 4.0e-06' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/approx.py:444: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*import*mismatch*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:32: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78df1f0450> 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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',") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: 'ImportError while importing test module*test_one.part1*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:78: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'ImportError while importing test module*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'ImportError while importing test module*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'ImportError while importing test module*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'ImportError while importing test module*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:133: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*cannot collect test class 'TestClass1' because it has a __init__ constructor" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:151: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:202: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: "*cannot collect test class 'TestCase' because it has a __new__ constructor*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:226: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78e1c652d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:240: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:298: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestGenerator.test_order_of_execution_generator_same_codeline _________ self = testdir = tmpdir = local('/tmp/pytest-of-thomas/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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:373: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:407: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:451: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunction.test_getmodulecollector _____________________ self = testdir = def test_getmodulecollector(self, testdir): > item = testdir.getitem("def test_func(): pass") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunction.test_function_equality ______________________ self = testdir = tmpdir = local('/tmp/pytest-of-thomas/pytest-1/test_function_equality1') def test_function_equality(self, testdir, tmpdir): from _pytest.fixtures import FixtureManager > config = testdir.parseconfigure() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:494: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:520: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:532: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:567: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:625: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:675: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:690: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestFunction.test_function_equality_with_callspec _______________ self = testdir = tmpdir = local('/tmp/pytest-of-thomas/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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:707: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:713: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:737: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:756: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '* 2 passed, 1 skipped in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:777: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 2 passed, 1 skipped in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:792: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 1 failed, 2 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:807: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 2 passed, 1 xfailed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:822: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 2 passed, 1 xpassed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:837: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 3 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:852: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:861: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:872: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:913: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:959: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:992: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*MyFunction*some*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1008: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78dedfbf90> def test_makeitem_non_underscore(self, testdir, monkeypatch): > modcol = testdir.getmodulecol("def _hello(): pass") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1011: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1085: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78df0657d0> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 '' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1115: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: ' *asd*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1140: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*ValueError: fail me*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1172: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78e9100890> 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1272: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*check_customized*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1337: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*_test_underscore*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1359: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1384: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*MyClass*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1412: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78dedccc90>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1432: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1537: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*ERROR collecting*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1551: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*collected 1 item*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1571: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*collected 2 item*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1591: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1597: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1604: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1635: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78e9100190> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/collect.py:1679: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78e18b4250> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*def test_func(some)*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:61: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*recursive dependency involving fixture 'fix1' detected*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:68: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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")) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:88: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78decc7e90> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:98: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:105: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:112: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78ded9d290>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:145: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78dee64d50>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:177: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:203: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:240: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:271: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:311: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:355: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78def74810>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:381: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*ERROR at setup of test_lookup_error*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:415: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78e1991dd0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:442: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:454: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:476: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:492: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestRequestBasic.test_request_garbage _____________________ self = testdir = @pytest.mark.skipif( hasattr(sys, "pypy_version_info"), reason="this method of test doesn't work on pypy", ) def test_request_garbage(self, testdir): try: import xdist # noqa except ImportError: pass else: pytest.xfail("this test is flaky when executed with xdist") testdir.makepyfile( """ import sys import pytest from _pytest.fixtures import PseudoFixtureDef import gc @pytest.fixture(autouse=True) def something(request): original = gc.get_debug() gc.set_debug(gc.DEBUG_SAVEALL) gc.collect() yield try: gc.collect() leaked_types = sum(1 for _ in gc.garbage if isinstance(_, PseudoFixtureDef)) # debug leaked types if the test fails print(leaked_types) gc.garbage[:] = [] assert leaked_types == 0 finally: gc.set_debug(original) def test_func(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: u'' E remains unmatched: '* 1 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:545: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:568: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:624: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:670: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:687: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 error*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:707: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*Exception: Error in excepts fixture' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:741: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:745: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:770: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:777: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:795: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:827: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 0x7f78deb4b650>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:846: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78def6af50>.str E + where <_pytest.pytester.LineMatcher object at 0x7f78def6af50> = <_pytest.pytester.RunResult object at 0x7f78deeca990>.stdout /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:857: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:870: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:888: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:930: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:957: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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" > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:978: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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" > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1000: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1006: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1024: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:972: in getitem items = self.getitems(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1061: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*1 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1080: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1111: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*3/x*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1131: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1169: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*ScopeMismatch*involved factories*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1194: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*ScopeMismatch*involved factories*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1216: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1234: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*2 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1258: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*pytest.fixture()*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1285: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1315: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*usefixtures(fixturename1*mark tests*fixtures*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1377: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1394: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1421: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1463: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1503: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1603: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1650: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1715: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1732: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1779: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*1 passed*1 error*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1800: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1825: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1853: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1871: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1898: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1924: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1951: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:1990: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2016: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2045: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2064: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2254: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2318: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*ScopeMismatch*You tried*function*session*request*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2354: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*ScopeMismatch*You tried*function*session*request*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2354: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2391: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*ScopeMismatch*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2419: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2437: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: 'test_mod1.py::test_func[s1] PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2498: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'test_dynamic_parametrized_ordering.py::test[flavor1-vxlan] PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2547: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'test_class_ordering.py::TestClass2::test_1\\[a-1\\] PASSED' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2607: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2640: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2723: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*Finalized*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2759: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2785: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2801: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2822: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2855: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2892: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2892: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2892: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2918: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2964: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2979: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*test_foo*alpha*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:2997: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_foo*alpha*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3014: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*def gen(qwe123):*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3129: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*ERROR*teardown*test_1*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3160: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*def gen(qwe123):*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3177: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*tmpdir*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3188: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*tmpdir*--*tmpdir.py*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3192: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*tmpdir' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3213: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*tmpdir*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3241: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*tmpdir*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3241: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* fixtures defined from test_show_fixtures_trimmed_doc *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3277: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* fixtures defined from test_show_fixtures_indented_doc *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3303: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* fixtures defined from test_show_fixtures_indented_doc_first_line_unindented *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3330: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* fixtures defined from test_show_fixtures_indented_in_class *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3358: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* fixtures defined from test_a *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3402: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* fixtures defined from conftest *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3442: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*setup*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3499: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*setup*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3499: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*setup*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3525: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*setup*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3525: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*pytest.fail*setup*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3545: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*pytest.fail*setup*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3545: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*pytest.fail*teardown*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3565: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*pytest.fail*teardown*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3565: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*fixture function*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3585: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*fixture function*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3585: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*mew*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3600: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*mew*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3600: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'The requested fixture has no parameter defined for test:' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3630: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'The requested fixture has no parameter defined for test:' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3656: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'The requested fixture has no parameter defined for test:' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3687: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: 'The requested fixture has no parameter defined for test:' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3731: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78deb8ebd0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3770: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78decc5950> @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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3816: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestScopeOrdering.test_func_closure_module_auto[autouse] ___________ self = testdir = variant = 'autouse' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f78d92a9890> @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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3816: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestScopeOrdering.test_func_closure_with_native_fixtures ___________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f78debfe150> 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3862: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3889: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3922: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:3962: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:4006: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/fixture.py:4075: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 > """ ) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestMockDecoration.test_mock _________________________ self = testdir = def test_mock(self, testdir): pytest.importorskip("mock", "1.0.1") testdir.makepyfile( """ import os import unittest import mock class T(unittest.TestCase): @mock.patch("os.path.abspath") def test_hello(self, abspath): os.path.abspath("hello") abspath.assert_any_call("hello") def mock_basename(path): return "mock_basename" @mock.patch("os.path.abspath") @mock.patch("os.path.normpath") @mock.patch("os.path.basename", new=mock_basename) def test_someting(normpath, abspath, tmpdir): abspath.return_value = "this" os.path.normpath(os.path.abspath("hello")) normpath.assert_any_call("this") assert os.path.basename("123") == "mock_basename" """ ) > reprec = testdir.inline_run() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestMockDecoration.test_mock_sorting _____________________ self = testdir = def test_mock_sorting(self, testdir): pytest.importorskip("mock", "1.0.1") testdir.makepyfile( """ import os import mock @mock.patch("os.path.abspath") def test_one(abspath): pass @mock.patch("os.path.abspath") def test_two(abspath): pass @mock.patch("os.path.abspath") def test_three(abspath): pass """ ) > reprec = testdir.inline_run() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestMockDecoration.test_mock_double_patch_issue473 ______________ self = testdir = def test_mock_double_patch_issue473(self, testdir): pytest.importorskip("mock", "1.0.1") testdir.makepyfile( """ from mock import patch from pytest import mark @patch('os.getcwd') @patch('os.path') @mark.slow class TestSimple(object): def test_simple_thing(self, mock_path, mock_getcwd): pass """ ) > reprec = testdir.inline_run() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:262: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*fix count 0*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:297: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:358: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*spam-2*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:417: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*spam-2*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:445: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_simple*a-b*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:568: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*uses no argument 'y'*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:596: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*uses no fixture 'y'*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:616: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*uses no fixture 'y'*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:633: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*uses no fixture 'y'*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:650: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*uses no argument 'y'*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:667: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*already takes an argument 'y' with a default value" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:683: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_simple*1-2*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:718: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78e196b650>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:761: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:773: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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 0x7f78dec1d2d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:805: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:870: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78def74d90> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_myfunc*0*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:892: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_func1*0*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:919: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:935: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78df038790> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_myfunc*hello*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:968: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_myfunc*hello*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:984: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_func*0*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1001: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1018: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78deab9710> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*(1, 4)*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1032: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_func1*1*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1057: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_func*1*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1080: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78dedd7910>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1101: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_function*1-b0*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1123: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78d9219190>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1139: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 1 skipped *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1163: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 1 skipped *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1177: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "*In test_ids_numbers: ids must be list of strings, found: 2 (type: *'int'>)*" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1193: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78e279de50>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1210: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1273: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78d8d19d90> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1297: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78d926c350> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1315: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f78ded62d10> 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 /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "test_foo has 'parametrise' mark, spelling should be 'parametrize'" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1335: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "test_foo has 'parameterize' mark, spelling should be 'parametrize'" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1335: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: "test_foo has 'parameterise' mark, spelling should be 'parametrize'" /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1335: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 3 passed *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1365: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 3 passed *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1388: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 2 passed *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1405: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '* 3 passed *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1432: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 0x7f78ded510d0> 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: u'' E remains unmatched: '* 4 passed in *' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1463: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1498: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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) /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1518: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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") /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1539: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1579: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1612: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1628: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1663: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1663: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1687: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1705: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1729: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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() /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1729: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:57: in main config = _prepareconfig(args, plugins) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:195: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/lib/python2.7/site-packages/pluggy/hooks.py:258: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:669: in pytest_cmdline_parse self.parse(args) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:841: in parse self._preparse(args, addopts=addopts) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:793: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/lib/python2.7/site-packages/pluggy/manager.py:260: in load_setuptools_entrypoints self.register(plugin, name=ep.name) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py:305: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/lib/python2.7/site-packages/pluggy/manager.py:99: in register hook._maybe_apply_history(hookimpl) /usr/lib/python2.7/site-packages/pluggy/hooks.py:305: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python2.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec_opts.get('firstresult'), /builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py:49: in pytest_addoption ??? /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_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: u'' E remains unmatched: '*test_func*0*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1750: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*test_func_a*0*PASS*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/metafunc.py:1774: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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: u'' E remains unmatched: '*3 passed*' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/raises.py:62: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d9195750>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:25: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d903a550>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:49: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78dece0390>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:83: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78decbcc90>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d8fbbcd0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:144: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d8d81590>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d92aad50>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:198: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78df053c10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:25: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78df07d550>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:49: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78def0e350>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:83: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78ded1f850>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d8de3550>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:144: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78def37bd0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78deddfd90>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:198: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78e46a28d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:25: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d90fd090>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:49: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78ded50090>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:83: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78decc99d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78def37ed0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:144: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d9100210>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78ded1f650>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:198: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d8d6ba50>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:219: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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: u'' E remains unmatched: 'this should be captured' /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:247: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d909c990>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_only.py:265: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78deb08e10>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/setup_plan.py:15: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d8fbe3d0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/show_fixtures_per_test.py:7: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78d9126450>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/show_fixtures_per_test.py:26: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78dedeab50>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/show_fixtures_per_test.py:65: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78deaca290>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/show_fixtures_per_test.py:109: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78dede3bd0>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/show_fixtures_per_test.py:146: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For 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 0x7f78dece0a50>.ret /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/show_fixtures_per_test.py:181: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 57, in main config = _prepareconfig(args, plugins) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 195, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 258, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 196, in _multicall gen.send(outcome) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 669, in pytest_cmdline_parse self.parse(args) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 841, in parse self._preparse(args, addopts=addopts) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 793, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 260, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/__init__.py", line 305, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 99, in register hook._maybe_apply_history(hookimpl) File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 305, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec_opts.get('firstresult'), File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 201, in _multicall return outcome.get_result() File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 77, in get_result _reraise(*ex) # noqa File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 180, in _multicall res = hook_impl.function(*args) File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.1-1.fc28.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 ============================ SKIP [1] testing/test_pdb.py:750: Requires breakpoint() builtin SKIP [1] testing/code/test_excinfo.py:1289: condition: sys.version_info[0] < 3 SKIP [1] testing/test_capture.py:519: only have capsysbinary in python 3 SKIP [1] testing/test_assertrewrite.py:401: condition: sys.version_info < (3,5) SKIP [1] testing/test_capture.py:858: python2 has no buffer SKIP [2] testing/code/test_excinfo.py:1229: condition: sys.version_info[0] < 3 SKIP [1] testing/test_warnings.py:127: warnings message is unicode is ok in python3 SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_junitxml.py:1041: could not import 'xdist' SKIP [1] testing/test_assertion.py:937: Python 3.4+ shows chained exceptions on multiprocess SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_terminal.py:618: xdist plugin not installed SKIP [29] /tmp/RPM_BUILDROOT/pytest-3.10.0-1.fc28.x86_64/usr/lib/python2.7/site-packages/_pytest/pytester.py:1209: could not import 'pexpect' SKIP [1] testing/test_pdb.py:702: Requires breakpoint() builtin 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 [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_parseopt.py:323: argcomplete not available SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:146: could not import 'unittest.mock' SKIP [2] testing/test_pdb.py:668: Requires breakpoint() builtin SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_terminal.py:1298: could not import 'xdist' SKIP [1] testing/test_compat.py:100: async syntax available in Python 3.5+ SKIP [2] testing/test_pdb.py:718: Requires breakpoint() builtin SKIP [1] testing/test_compat.py:78: asyncio available in Python 3.4+ SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:130: could not import 'unittest.mock' SKIP [1] testing/test_capture.py:827: python 3 only behaviour SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/acceptance_test.py:933: could not import 'zipapp' SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_unittest.py:940: could not import 'unittest2' SKIP [1] testing/test_tmpdir.py:179: win only SKIP [1] testing/code/test_excinfo.py:1101: condition: sys.version_info[0] < 3 SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_terminal.py:1293: could not import 'xdist' SKIP [11] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_runner.py:429: could not import 'xdist.boxed' SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_terminal.py:1404: could not import 'xdist' SKIP [2] testing/code/test_excinfo.py:1187: condition: sys.version_info[0] < 3 SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/test_terminal.py:1309: could not import 'xdist' SKIP [1] testing/test_pdb.py:773: Requires breakpoint() builtin SKIP [1] /home/thomas/Work/rpmbuild/pytest/pytest-3.10.0/testing/python/integration.py:168: could not import 'unittest.mock' SKIP [1] testing/test_config.py:198: condition: sys.version_info[0] < 3 =============================== warnings summary =============================== testing/test_warnings.py::test_normal_flow /usr/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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/lib/python2.7/site-packages/pluggy/callers.py:180: DeprecationWarning: `type` argument to addoption() is the string 'choice'. 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 428 failed, 1786 passed, 77 skipped, 11 xfailed, 22 warnings in 164.38 seconds Fehler beim Bauen des RPM: