Also show testprocess output on teardown errors.
This commit is contained in:
parent
ab79cd2496
commit
8ca85b9c66
@ -86,7 +86,7 @@ def _render_log(data, threshold=50):
|
|||||||
def pytest_runtest_makereport(item, call):
|
def pytest_runtest_makereport(item, call):
|
||||||
"""Add qutebrowser/httpbin sections to captured output if a test failed."""
|
"""Add qutebrowser/httpbin sections to captured output if a test failed."""
|
||||||
outcome = yield
|
outcome = yield
|
||||||
if call.when != 'call':
|
if call.when not in ['call', 'teardown']:
|
||||||
return
|
return
|
||||||
report = outcome.get_result()
|
report = outcome.get_result()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user