INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/_pytest/main.py", line 196, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/_pytest/main.py", line 246, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/_pytest/main.py", line 270, in pytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/pluggy/callers.py", line 182, in _multicall
INTERNALERROR> next(gen) # first yield
INTERNALERROR> File "/home/florian/proj/qutebrowser/git/.tox/py37-pyqt513/lib/python3.7/site-packages/_pytest/faulthandler.py", line 60, in pytest_runtest_protocol
INTERNALERROR> stderr = item.config.fault_handler_stderr
INTERNALERROR> AttributeError: 'Config' object has no attribute 'fault_handler_stderr'
When launching pytest 5.3.2 with
python3 -X faulthandler -m pytest(orPYTHONFAULTHANDLER=1, or enabling Development Mode) and with afaulthandler_timeoutset, pytest fails with this after collecting:As a workaround,
-p no:faulthandlercan be used.It looks like
pytest_configureinfaulthandler.pyexits early if it's already enabled:pytest/src/_pytest/faulthandler.py
Lines 17 to 26 in 6a26ac4
Thus it doesn't set the
config.fault_handler_stderrattribute, but laterpytest_runtest_protocolassumes that it exists:pytest/src/_pytest/faulthandler.py
Lines 54 to 60 in 6a26ac4