py36 create: /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36 py36 installdeps: pytest==5.2.4, pytest-pep8, coverage py36 develop-inst: /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0 py36 installed: apipkg==1.5,atomicwrites==1.3.0,attrs==19.3.0,coverage==4.5.4,execnet==1.7.1,importlib-metadata==1.1.0,more-itertools==8.0.0,packaging==19.2,pep8==1.7.1,pluggy==0.13.1,py==1.8.0,pyflakes==2.1.1,pyparsing==2.4.5,pytest==5.2.4,pytest-cache==1.0,pytest-flakes==4.0.0,pytest-pep8==1.0.6,six==1.13.0,wcwidth==0.1.7,zipp==0.6.0 py36 run-test-pre: PYTHONHASHSEED='1632416479' py36 run-test: commands[0] | coverage erase py36 run-test: commands[1] | coverage run /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/bin/py.test --junitxml=/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/log/junit-py36.xml ============================= test session starts ============================== platform linux -- Python 3.6.7, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 cachedir: .tox/py36/.pytest_cache rootdir: /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0, inifile: tox.ini plugins: pep8-1.0.6, flakes-4.0.0 collected 11 items pytest_flakes.py .. [ 9%] setup.py .. [ 18%] test_flakes.py ...F... =================================== FAILURES =================================== ______________________________ test_syntax_error _______________________________ testdir = def test_syntax_error(testdir): testdir.makeini(""" [pytest] python_files=check_*.py """) testdir.makepyfile(""" for x in [] pass """) result = testdir.runpytest("--flakes", "--ignore", testdir) > assert "1: invalid syntax" in result.stdout.str() E AssertionError: assert '1: invalid syntax' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7ff36b060b70>.str E + where <_pytest.pytester.LineMatcher object at 0x7ff36b060b70> = .stdout /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/test_flakes.py:24: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/pytester.py", line 864, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/pytester.py", line 830, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/__init__.py", line 71, in main config = _prepareconfig(args, plugins) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/__init__.py", line 216, in _prepareconfig pluginmanager=pluginmanager, args=args File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/pluggy/manager.py", line 87, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/helpconfig.py", line 89, in pytest_cmdline_parse config = outcome.get_result() File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/__init__.py", line 733, in pytest_cmdline_parse self.parse(args) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/__init__.py", line 940, in parse self._preparse(args, addopts=addopts) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/__init__.py", line 875, in _preparse self._initini(args) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/__init__.py", line 800, in _initini args, namespace=copy.copy(self.option) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/argparsing.py", line 128, in parse_known_and_unknown_args return optparser.parse_known_args(args, namespace=namespace) File "/opt/python/3.6.7/lib/python3.6/argparse.py", line 1766, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File "/opt/python/3.6.7/lib/python3.6/argparse.py", line 1807, in _parse_known_args option_tuple = self._parse_optional(arg_string) File "/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/config/argparsing.py", line 377, in _parse_optional if not arg_string[0] in self.prefix_chars: TypeError: 'Testdir' object does not support indexing =============================== warnings summary =============================== .tox/py36/lib/python3.6/site-packages/_pytest/mark/structures.py:325 /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/lib/python3.6/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.pep8 - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, pytest_flakes.py /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/pytest_flakes.py:100: DeprecationWarning: invalid escape sequence \d def __init__(self, ignorelines, coderex=re.compile("[EW]\d\d\d")): -- Docs: https://docs.pytest.org/en/latest/warnings.html - generated xml file: /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/log/junit-py36.xml - =================== 1 failed, 10 passed, 2 warnings in 9.47s =================== ERROR: InvocationError for command /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/bin/coverage run .tox/py36/bin/py.test --junitxml=/tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/.tox/py36/log/junit-py36.xml (exited with code 1) ___________________________________ summary ____________________________________ ERROR: py36: commands failed write json report at: /tmp/tmpt_6wz3mn/pytest-flakes-4.0.0/result.json Time: 91.3 seconds