GLOB sdist-make: /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/setup.py py36 create: /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/.tox/py36 py36 installdeps: pytest-xdist py36 inst: /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/.tox/.tmp/package/1/pytest-incremental-0.5.0.zip py36 installed: apipkg==1.5,attrs==20.1.0,cloudpickle==1.6.0,doit==0.31.1,execnet==1.7.1,import-deps==0.1.0,importlib-metadata==1.7.0,iniconfig==1.0.1,more-itertools==8.5.0,packaging==20.4,pluggy==0.13.1,py==1.9.0,pyinotify==0.9.6,pyparsing==2.4.7,pytest==6.0.1,pytest-forked==1.3.0,pytest-incremental @ file:///tmp/tmpem5tjc7u/pytest-incremental-0.5.0/.tox/.tmp/package/1/pytest-incremental-0.5.0.zip,pytest-xdist==2.1.0,six==1.15.0,toml==0.10.1,zipp==3.1.0 py36 run-test-pre: PYTHONHASHSEED='571863869' py36 run-test: commands[0] | py.test ============================= test session starts ============================== platform linux -- Python 3.6.7, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 cachedir: .tox/py36/.pytest_cache rootdir: /tmp/tmpem5tjc7u/pytest-incremental-0.5.0 plugins: xdist-2.1.0, forked-1.3.0, incremental-0.5.0 collected 35 items tests/test_functional.py ....FFFFF. [ 28%] tests/test_graph.py ............... [ 71%] tests/test_tasks.py .......... [100%] =================================== FAILURES =================================== _______________________ test_fail_always_reexecute_test ________________________ testdir = def test_fail_always_reexecute_test(testdir): TEST_FAIL = """ def foo(): return 'foo' def test_foo(): assert 'bar' == foo() """ test = testdir.makepyfile(TEST_FAIL) args = ['--inc', test] # first time failed rec = testdir.inline_run(*args) > results = get_results(rec) /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ recorder = <_pytest.pytester.HookRecorder object at 0x7f1ce42ee9e8> def get_results(recorder): '''filter records to get only call results''' results = {} for result in recorder.getreports(): when = getattr(result, 'when', None) if when is None: continue > test_name = result.nodeid.split('::')[1] E IndexError: list index out of range /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:14: IndexError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.6.7, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-26/test_fail_always_reexecute_test0 plugins: xdist-2.1.0, forked-1.3.0, incremental-0.5.0 collected 1 item test_fail_always_reexecute_test.py F [100%] =================================== FAILURES =================================== ___________________________________ test_foo ___________________________________ def test_foo(): > assert 'bar' == foo() E AssertionError: assert 'bar' == 'foo' E - foo E + bar test_fail_always_reexecute_test.py:4: AssertionError =========================== short test summary info ============================ FAILED test_fail_always_reexecute_test.py::test_foo - AssertionError: assert ... ============================== 1 failed in 0.53s =============================== ______________________ test_ok_reexecute_only_if_changed _______________________ testdir = capsys = <_pytest.capture.CaptureFixture object at 0x7f1ce48724e0> def test_ok_reexecute_only_if_changed(testdir, capsys): TEST_OK = """ def foo(): return 'foo' def test_foo(): assert 'foo' == foo() """ TEST_OK_2 = """ def foo(): return 'foo' def test_foo(): assert 'foo' == foo() def test_bar(): assert True """ # first time test = testdir.makepyfile(TEST_OK) args = ['--inc', str(test)] # first time passed rec = testdir.inline_run(*args) > results = get_results(rec) /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ recorder = <_pytest.pytester.HookRecorder object at 0x7f1ce3f98780> def get_results(recorder): '''filter records to get only call results''' results = {} for result in recorder.getreports(): when = getattr(result, 'when', None) if when is None: continue > test_name = result.nodeid.split('::')[1] E IndexError: list index out of range /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:14: IndexError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.6.7, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-26/test_ok_reexecute_only_if_changed0 plugins: xdist-2.1.0, forked-1.3.0, incremental-0.5.0 collected 1 item test_ok_reexecute_only_if_changed.py . [100%] ============================== 1 passed in 0.37s =============================== ______________________ test_skip_same_behaviour_as_passed ______________________ testdir = def test_skip_same_behaviour_as_passed(testdir): TEST_SKIP = """ import pytest @pytest.mark.skipif("True") def test_my_skip(): assert False # not executed @pytest.mark.xfail def test_my_fail(): assert False """ # first time test = testdir.makepyfile(TEST_SKIP) args = ['--inc', test] rec = testdir.inline_run(*args) > results = get_results(rec) /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ recorder = <_pytest.pytester.HookRecorder object at 0x7f1ce3ba3048> def get_results(recorder): '''filter records to get only call results''' results = {} for result in recorder.getreports(): when = getattr(result, 'when', None) if when is None: continue > test_name = result.nodeid.split('::')[1] E IndexError: list index out of range /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:14: IndexError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.6.7, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-26/test_skip_same_behaviour_as_passed0 plugins: xdist-2.1.0, forked-1.3.0, incremental-0.5.0 collected 2 items test_skip_same_behaviour_as_passed.py sx [100%] ======================== 1 skipped, 1 xfailed in 0.39s ========================= ________________________ test_keyword_dont_save_success ________________________ testdir = capsys = <_pytest.capture.CaptureFixture object at 0x7f1ce3ba3128> def test_keyword_dont_save_success(testdir, capsys): test = testdir.makepyfile(TEST_SAMPLE) testdir.inline_run('--inc', '-k', 'foo', test) out = capsys.readouterr()[0].splitlines() assert 'WARNING: incremental not saving results because -k was used' in out rec = testdir.inline_run('--inc', test) > results = get_results(rec) /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:173: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ recorder = <_pytest.pytester.HookRecorder object at 0x7f1ce3793e10> def get_results(recorder): '''filter records to get only call results''' results = {} for result in recorder.getreports(): when = getattr(result, 'when', None) if when is None: continue > test_name = result.nodeid.split('::')[1] E IndexError: list index out of range /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:14: IndexError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.6.7, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-26/test_keyword_dont_save_success0 plugins: xdist-2.1.0, forked-1.3.0, incremental-0.5.0 collected 2 items test_keyword_dont_save_success.py .. [100%] ============================== 2 passed in 0.37s =============================== ___________________________ test_xdist_not_supported ___________________________ testdir = capsys = <_pytest.capture.CaptureFixture object at 0x7f1ce34e9d68> def test_xdist_not_supported(testdir, capsys): > from _pytest.main import EXIT_USAGEERROR E ImportError: cannot import name 'EXIT_USAGEERROR' /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/tests/test_functional.py:179: ImportError =========================== short test summary info ============================ FAILED tests/test_functional.py::test_fail_always_reexecute_test - IndexError... FAILED tests/test_functional.py::test_ok_reexecute_only_if_changed - IndexErr... FAILED tests/test_functional.py::test_skip_same_behaviour_as_passed - IndexEr... FAILED tests/test_functional.py::test_keyword_dont_save_success - IndexError:... FAILED tests/test_functional.py::test_xdist_not_supported - ImportError: cann... ========================= 5 failed, 30 passed in 9.83s ========================= ERROR: InvocationError for command /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/.tox/py36/bin/py.test (exited with code 1) ___________________________________ summary ____________________________________ ERROR: py36: commands failed write json report at: /tmp/tmpem5tjc7u/pytest-incremental-0.5.0/result.json Time: 51.6 seconds