Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 534166 Details for
Bug 656922
dev-python/pytest-rerunfailures-2.1.0 : [TEST] E ValueError: line ERROR: --reruns incompatible with --pdb not found in output
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:pytest-rerunfailures-2.1.0:20180530-180649.log
dev-python:pytest-rerunfailures-2.1.0:20180530-180649.log (text/plain), 47.67 KB, created by
Toralf Förster
on 2018-05-30 18:28:31 UTC
(
hide
)
Description:
dev-python:pytest-rerunfailures-2.1.0:20180530-180649.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2018-05-30 18:28:31 UTC
Size:
47.67 KB
patch
obsolete
> * Package: dev-python/pytest-rerunfailures-2.1.0 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_5 userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-rerunfailures-2.1.0.tar.gz to /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0 ... > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >python2.7 setup.py build >running build >running build_py >copying pytest_rerunfailures.py -> /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0-python2_7/lib >warning: build_py: byte-compiling is disabled, skipping. > > * python3_5: running distutils-r1_run_phase distutils-r1_python_compile >python3.5 setup.py build >running build >running build_py >copying pytest_rerunfailures.py -> /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0-python3_5/lib >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-rerunfailures-2.1.0 > * python2_7: running distutils-r1_run_phase python_test >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collecting ... collected 20 items > >test_pytest_rerunfailures.py::test_error_when_run_with_pdb FAILED [ 5%] >test_pytest_rerunfailures.py::test_no_rerun_on_pass PASSED [ 10%] >test_pytest_rerunfailures.py::test_no_rerun_on_skipif_mark PASSED [ 15%] >test_pytest_rerunfailures.py::test_no_rerun_on_skip_call PASSED [ 20%] >test_pytest_rerunfailures.py::test_no_rerun_on_xfail_mark PASSED [ 25%] >test_pytest_rerunfailures.py::test_no_rerun_on_xfail_call PASSED [ 30%] >test_pytest_rerunfailures.py::test_no_rerun_on_xpass PASSED [ 35%] >test_pytest_rerunfailures.py::test_rerun_fails_after_consistent_setup_failure FAILED [ 40%] >test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_setup_failure FAILED [ 45%] >test_pytest_rerunfailures.py::test_rerun_fails_after_consistent_test_failure FAILED [ 50%] >test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_test_failure FAILED [ 55%] >test_pytest_rerunfailures.py::test_rerun_passes_after_temporary_test_failure_with_flaky_mark FAILED [ 60%] >test_pytest_rerunfailures.py::test_reruns_if_flaky_mark_is_called_without_options FAILED [ 65%] >test_pytest_rerunfailures.py::test_reruns_if_flaky_mark_is_called_with_positional_argument FAILED [ 70%] >test_pytest_rerunfailures.py::test_no_extra_test_summary_for_reruns_by_default FAILED [ 75%] >test_pytest_rerunfailures.py::test_extra_test_summary_for_reruns FAILED [ 80%] >test_pytest_rerunfailures.py::test_verbose FAILED [ 85%] >test_pytest_rerunfailures.py::test_no_rerun_on_class_setup_error_without_reruns PASSED [ 90%] >test_pytest_rerunfailures.py::test_rerun_on_class_setup_error_with_reruns FAILED [ 95%] >test_pytest_rerunfailures.py::test_rerun_with_resultslog FAILED [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >_________________________ test_error_when_run_with_pdb _________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_error_when_run_with_pdb0')> > > def test_error_when_run_with_pdb(testdir): > testdir.makepyfile('def test_pass(): pass') > result = testdir.runpytest('--reruns', '1', '--pdb') > result.stderr.fnmatch_lines_random( >> 'ERROR: --reruns incompatible with --pdb') > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:31: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python2.7/site-packages/_pytest/pytester.py:1121: in fnmatch_lines_random > self._match_lines_random(lines2, fnmatch) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.pytester.LineMatcher object at 0x7f2d6fb2b6d0> >lines2 = ['ERROR: --reruns incompatible with --pdb'] >match_func = <function fnmatch at 0x7f2d77649b90> > > 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 'ERROR: --reruns incompatible with --pdb' not found in output > >/usr/lib64/python2.7/site-packages/_pytest/pytester.py:1147: ValueError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_error_when_run_with_pdb0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_error_when_run_with_pdb.py . [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 passed, 1 warnings in 0.01 seconds ===================== >_______________ test_rerun_fails_after_consistent_setup_failure ________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_fails_after_consistent_setup_failure0')> > > def test_rerun_fails_after_consistent_setup_failure(testdir): > testdir.makepyfile('def test_pass(): pass') > testdir.makeconftest(""" > def pytest_runtest_setup(item): > raise Exception('Setup failure')""") > result = testdir.runpytest('--reruns', '1') >> assert_outcomes(result, passed=0, error=1, rerun=1) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:104: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f78cb10>, passed = 0 >skipped = 0, failed = 0, error = 1, xfailed = 0, xpassed = 0, rerun = 1 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() > assert outcomes.get('passed', 0) == passed > assert outcomes.get('skipped', 0) == skipped > assert outcomes.get('failed', 0) == failed > assert outcomes.get('xfailed', 0) == xfailed > assert outcomes.get('xpassed', 0) == xpassed >> assert outcomes.get('rerun', 0) == rerun >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f6b0168>('rerun', 0) >E + where <built-in method get of dict object at 0x7f2d6f6b0168> = {'error': 1, 'seconds': 2, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:24: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_fails_after_consistent_setup_failure0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_fails_after_consistent_setup_failure.py E [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >==================================== ERRORS ==================================== >_________________________ ERROR at setup of test_pass __________________________ > >> lambda: ihook(item=item, **kwds), > when=when, > ) > >/usr/lib64/python2.7/site-packages/flaky/flaky_pytest_plugin.py:273: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >item = <Function 'test_pass'> > > def pytest_runtest_setup(item): >> raise Exception('Setup failure') >E Exception: Setup failure > >conftest.py:2: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 warnings, 1 error in 0.02 seconds ====================== >_______________ test_rerun_passes_after_temporary_setup_failure ________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_passes_after_temporary_setup_failure0')> > > def test_rerun_passes_after_temporary_setup_failure(testdir): > testdir.makepyfile('def test_pass(): pass') > testdir.makeconftest(""" > def pytest_runtest_setup(item): > {0}""".format(temporary_failure())) > result = testdir.runpytest('--reruns', '1', '-r', 'R') >> assert_outcomes(result, passed=1, rerun=1) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:113: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f66e4d0>, passed = 1 >skipped = 0, failed = 0, error = 0, xfailed = 0, xpassed = 0, rerun = 1 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() >> assert outcomes.get('passed', 0) == passed >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f878050>('passed', 0) >E + where <built-in method get of dict object at 0x7f2d6f878050> = {'error': 1, 'seconds': 2, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:19: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_passes_after_temporary_setup_failure0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_passes_after_temporary_setup_failure.py E [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >==================================== ERRORS ==================================== >_________________________ ERROR at setup of test_pass __________________________ > >> lambda: ihook(item=item, **kwds), > when=when, > ) > >/usr/lib64/python2.7/site-packages/flaky/flaky_pytest_plugin.py:273: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >item = <Function 'test_pass'> > > def pytest_runtest_setup(item): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 1: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >conftest.py:7: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 warnings, 1 error in 0.02 seconds ====================== >________________ test_rerun_fails_after_consistent_test_failure ________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_fails_after_consistent_test_failure0')> > > def test_rerun_fails_after_consistent_test_failure(testdir): > testdir.makepyfile('def test_fail(): assert False') > result = testdir.runpytest('--reruns', '1') >> assert_outcomes(result, passed=0, failed=1, rerun=1) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:119: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6fa73650>, passed = 0 >skipped = 0, failed = 1, error = 0, xfailed = 0, xpassed = 0, rerun = 1 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() > assert outcomes.get('passed', 0) == passed > assert outcomes.get('skipped', 0) == skipped > assert outcomes.get('failed', 0) == failed > assert outcomes.get('xfailed', 0) == xfailed > assert outcomes.get('xpassed', 0) == xpassed >> assert outcomes.get('rerun', 0) == rerun >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f7e8280>('rerun', 0) >E + where <built-in method get of dict object at 0x7f2d6f7e8280> = {'failed': 1, 'seconds': 2, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:24: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_fails_after_consistent_test_failure0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_fails_after_consistent_test_failure.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_fail ___________________________________ > >> def test_fail(): assert False >E assert False > >test_rerun_fails_after_consistent_test_failure.py:1: AssertionError >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.02 seconds ===================== >________________ test_rerun_passes_after_temporary_test_failure ________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_passes_after_temporary_test_failure0')> > > def test_rerun_passes_after_temporary_test_failure(testdir): > testdir.makepyfile(""" > def test_pass(): > {0}""".format(temporary_failure())) > result = testdir.runpytest('--reruns', '1', '-r', 'R') >> assert_outcomes(result, passed=1, rerun=1) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:127: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f459110>, passed = 1 >skipped = 0, failed = 0, error = 0, xfailed = 0, xpassed = 0, rerun = 1 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() >> assert outcomes.get('passed', 0) == passed >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6fb285c8>('passed', 0) >E + where <built-in method get of dict object at 0x7f2d6fb285c8> = {'failed': 1, 'seconds': 1, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:19: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_passes_after_temporary_test_failure0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_passes_after_temporary_test_failure.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 1: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_rerun_passes_after_temporary_test_failure.py:7: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.01 seconds ===================== >________ test_rerun_passes_after_temporary_test_failure_with_flaky_mark ________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/py...age/pytest-0/test_rerun_passes_after_temporary_test_failure_with_flaky_mark0')> > > def test_rerun_passes_after_temporary_test_failure_with_flaky_mark(testdir): > testdir.makepyfile(""" > import pytest > @pytest.mark.flaky(reruns=2) > def test_pass(): > {0}""".format(temporary_failure(2))) > result = testdir.runpytest('-r', 'R') >> assert_outcomes(result, passed=1, rerun=2) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:137: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f6ab710>, passed = 1 >skipped = 0, failed = 0, error = 0, xfailed = 0, xpassed = 0, rerun = 2 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() >> assert outcomes.get('passed', 0) == passed >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f7dec58>('passed', 0) >E + where <built-in method get of dict object at 0x7f2d6f7dec58> = {'failed': 1, 'seconds': 1, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:19: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_passes_after_temporary_test_failure_with_flaky_mark0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_passes_after_temporary_test_failure_with_flaky_mark.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > @pytest.mark.flaky(reruns=2) > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 2: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_rerun_passes_after_temporary_test_failure_with_flaky_mark.py:9: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.01 seconds ===================== >_____________ test_reruns_if_flaky_mark_is_called_without_options ______________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_reruns_if_flaky_mark_is_called_without_options0')> > > def test_reruns_if_flaky_mark_is_called_without_options(testdir): > testdir.makepyfile(""" > import pytest > @pytest.mark.flaky() > def test_pass(): > {0}""".format(temporary_failure(1))) > result = testdir.runpytest('-r', 'R') >> assert_outcomes(result, passed=1, rerun=1) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:147: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f68af10>, passed = 1 >skipped = 0, failed = 0, error = 0, xfailed = 0, xpassed = 0, rerun = 1 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() >> assert outcomes.get('passed', 0) == passed >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f483d70>('passed', 0) >E + where <built-in method get of dict object at 0x7f2d6f483d70> = {'failed': 1, 'seconds': 1, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:19: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_reruns_if_flaky_mark_is_called_without_options0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_reruns_if_flaky_mark_is_called_without_options.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > @pytest.mark.flaky() > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 1: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_reruns_if_flaky_mark_is_called_without_options.py:9: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.01 seconds ===================== >_________ test_reruns_if_flaky_mark_is_called_with_positional_argument _________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/py...rtage/pytest-0/test_reruns_if_flaky_mark_is_called_with_positional_argument0')> > > def test_reruns_if_flaky_mark_is_called_with_positional_argument(testdir): > testdir.makepyfile(""" > import pytest > @pytest.mark.flaky(2) > def test_pass(): > {0}""".format(temporary_failure(2))) > result = testdir.runpytest('-r', 'R') >> assert_outcomes(result, passed=1, rerun=2) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:157: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f2e9f10>, passed = 1 >skipped = 0, failed = 0, error = 0, xfailed = 0, xpassed = 0, rerun = 2 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() >> assert outcomes.get('passed', 0) == passed >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f2f8050>('passed', 0) >E + where <built-in method get of dict object at 0x7f2d6f2f8050> = {'failed': 1, 'seconds': 2, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:19: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_reruns_if_flaky_mark_is_called_with_positional_argument0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_reruns_if_flaky_mark_is_called_with_positional_argument.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > @pytest.mark.flaky(2) > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 2: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_reruns_if_flaky_mark_is_called_with_positional_argument.py:9: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.02 seconds ===================== >_______________ test_no_extra_test_summary_for_reruns_by_default _______________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_no_extra_test_summary_for_reruns_by_default0')> > > def test_no_extra_test_summary_for_reruns_by_default(testdir): > testdir.makepyfile(""" > def test_pass(): > {0}""".format(temporary_failure())) > result = testdir.runpytest('--reruns', '1') > assert 'RERUN' not in result.stdout.str() >> assert '1 rerun' in result.stdout.str() >E AssertionError: assert '1 rerun' in '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.14, py...c.pytest.org/en/latest/warnings.html\n===================== 1 failed, 1 warnings in 0.02 seconds =====================\n' >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.14, py...c.pytest.org/en/latest/warnings.html\n===================== 1 failed, 1 warnings in 0.02 seconds =====================\n' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f2d6f2d6410>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0x7f2d6f2d6410>> = <_pytest.pytester.LineMatcher object at 0x7f2d6f2d6410>.str >E + where <_pytest.pytester.LineMatcher object at 0x7f2d6f2d6410> = <_pytest.pytester.RunResult object at 0x7f2d6f2d6d50>.stdout > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:166: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_no_extra_test_summary_for_reruns_by_default0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_no_extra_test_summary_for_reruns_by_default.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 1: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_no_extra_test_summary_for_reruns_by_default.py:7: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.02 seconds ===================== >______________________ test_extra_test_summary_for_reruns ______________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_extra_test_summary_for_reruns0')> > > def test_extra_test_summary_for_reruns(testdir): > testdir.makepyfile(""" > def test_pass(): > {0}""".format(temporary_failure())) > result = testdir.runpytest('--reruns', '1', '-r', 'R') >> result.stdout.fnmatch_lines_random(['RERUN test_*:*']) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python2.7/site-packages/_pytest/pytester.py:1121: in fnmatch_lines_random > self._match_lines_random(lines2, fnmatch) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.pytester.LineMatcher object at 0x7f2d6f690810> >lines2 = ['RERUN test_*:*'], match_func = <function fnmatch at 0x7f2d77649b90> > > 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 'RERUN test_*:*' not found in output > >/usr/lib64/python2.7/site-packages/_pytest/pytester.py:1147: ValueError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_extra_test_summary_for_reruns0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_extra_test_summary_for_reruns.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 1: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_extra_test_summary_for_reruns.py:7: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.02 seconds ===================== >_________________________________ test_verbose _________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_verbose0')> > > def test_verbose(testdir): > testdir.makepyfile(""" > def test_pass(): > {0}""".format(temporary_failure())) > result = testdir.runpytest('--reruns', '1', '-v') >> result.stdout.fnmatch_lines_random(['test_*:* RERUN']) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:183: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib64/python2.7/site-packages/_pytest/pytester.py:1121: in fnmatch_lines_random > self._match_lines_random(lines2, fnmatch) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <_pytest.pytester.LineMatcher object at 0x7f2d6f104150> >lines2 = ['test_*:* RERUN'], match_func = <function fnmatch at 0x7f2d77649b90> > > 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 'test_*:* RERUN' not found in output > >/usr/lib64/python2.7/site-packages/_pytest/pytester.py:1147: ValueError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_verbose0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collecting ... collected 1 item > >test_verbose.py::test_pass FAILED [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_pass ___________________________________ > > def test_pass(): > import py > path = py.path.local(__file__).dirpath().ensure('test.res') > count = path.read() or 1 > if int(count) <= 1: > path.write(int(count) + 1) >> raise Exception('Failure: {0}'.format(count)) >E Exception: Failure: 1 > >test_verbose.py:7: Exception >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 1 warnings in 0.02 seconds ===================== >_________________ test_rerun_on_class_setup_error_with_reruns __________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_on_class_setup_error_with_reruns0')> > > def test_rerun_on_class_setup_error_with_reruns(testdir): > testdir.makepyfile(""" > class TestFoo(object): > @classmethod > def setup_class(cls): > assert False > > def test_pass(): > pass""") > result = testdir.runpytest('--reruns', '1') >> assert_outcomes(result, passed=0, error=1, rerun=1) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:210: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f132d10>, passed = 0 >skipped = 0, failed = 0, error = 1, xfailed = 0, xpassed = 0, rerun = 1 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() > assert outcomes.get('passed', 0) == passed > assert outcomes.get('skipped', 0) == skipped > assert outcomes.get('failed', 0) == failed > assert outcomes.get('xfailed', 0) == xfailed > assert outcomes.get('xpassed', 0) == xpassed >> assert outcomes.get('rerun', 0) == rerun >E AssertionError: assert 0 == 1 >E + where 0 = <built-in method get of dict object at 0x7f2d6f1aa4b0>('rerun', 0) >E + where <built-in method get of dict object at 0x7f2d6f1aa4b0> = {'error': 1, 'seconds': 2, 'warnings': 1}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:24: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_on_class_setup_error_with_reruns0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_on_class_setup_error_with_reruns.py E [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >==================================== ERRORS ==================================== >_____________________ ERROR at setup of TestFoo.test_pass ______________________ > >cls = <class 'test_rerun_on_class_setup_error_with_reruns.TestFoo'> > > @classmethod > def setup_class(cls): >> assert False >E assert False > >test_rerun_on_class_setup_error_with_reruns.py:4: AssertionError >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 warnings, 1 error in 0.02 seconds ====================== >__________________________ test_rerun_with_resultslog __________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_with_resultslog0')> > > def test_rerun_with_resultslog(testdir): > testdir.makepyfile(""" > def test_fail(): > assert False""") > > result = testdir.runpytest('--reruns', '2', > '--result-log', './pytest.log') > >> assert_outcomes(result, passed=0, failed=1, rerun=2) > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:221: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f2d6f0c2390>, passed = 0 >skipped = 0, failed = 1, error = 0, xfailed = 0, xpassed = 0, rerun = 2 > > def assert_outcomes(result, passed=1, skipped=0, failed=0, error=0, xfailed=0, > xpassed=0, rerun=0): > outcomes = result.parseoutcomes() > assert outcomes.get('passed', 0) == passed > assert outcomes.get('skipped', 0) == skipped > assert outcomes.get('failed', 0) == failed > assert outcomes.get('xfailed', 0) == xfailed > assert outcomes.get('xpassed', 0) == xpassed >> assert outcomes.get('rerun', 0) == rerun >E AssertionError: assert 0 == 2 >E + where 0 = <built-in method get of dict object at 0x7f2d6efee398>('rerun', 0) >E + where <built-in method get of dict object at 0x7f2d6efee398> = {'failed': 1, 'seconds': 2, 'warnings': 2}.get > >../../../../work/pytest-rerunfailures-2.1.0/test_pytest_rerunfailures.py:24: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.4.1, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/pytest-of-portage/pytest-0/test_rerun_with_resultslog0, inifile: >plugins: rerunfailures-2.1.0, xprocess-0.12.1, xdist-1.20.1, virtualenv-1.2.11, timeout-1.2.1, shutil-1.2.11, pythonpath-0.7.1, pep8-1.0.6, mock-1.6.3, isort-0.1.0, forked-0.2, expect-1.1.0, cython-0.1.0, cov-2.5.1, catchlog-1.2.2, arraydiff-0.1, flaky-3.4.0, case-1.5.3, backports.unittest-mock-1.3 >collected 1 item > >test_rerun_with_resultslog.py F [100%] >===Flaky Test Report=== > > >===End Flaky Test Report=== > >=================================== FAILURES =================================== >__________________________________ test_fail ___________________________________ > > def test_fail(): >> assert False >E assert False > >test_rerun_with_resultslog.py:2: AssertionError >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > --result-log is deprecated and scheduled for removal in pytest 4.0. > See https://docs.pytest.org/en/latest/usage.html#creating-resultlog-format-files for more information. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >===================== 1 failed, 2 warnings in 0.02 seconds ===================== >=============================== warnings summary =============================== >None > pytest-catchlog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >=============== 13 failed, 7 passed, 1 warnings in 77.93 seconds =============== > * ERROR: dev-python/pytest-rerunfailures-2.1.0::gentoo failed (test phase): > * (no error message) > * > * Call stack: > * ebuild.sh, line 124: Called src_test > * environment, line 2692: Called distutils-r1_src_test > * environment, line 948: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 410: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2227: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1602: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1600: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 622: Called distutils-r1_run_phase 'python_test' > * environment, line 879: Called python_test > * environment, line 2594: Called die > * The specific snippet of code: > * py.test -v || die > * > * If you need support, post the output of `emerge --info '=dev-python/pytest-rerunfailures-2.1.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-rerunfailures-2.1.0::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:pytest-rerunfailures-2.1.0:20180530-180649.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0' > * S: '/var/tmp/portage/dev-python/pytest-rerunfailures-2.1.0/work/pytest-rerunfailures-2.1.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 656922
:
534164
| 534166 |
534168
|
534170
|
534172
|
534174