diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index 6998e2603..b41b9923f 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -76,7 +76,11 @@ class Line: def _render_log(data, threshold=100): """Shorten the given log without -v and convert to a string.""" # pylint: disable=no-member - if len(data) > threshold and not pytest.config.getoption('--verbose'): + is_exception = any('Traceback (most recent call last):' in line + for line in data) + if (len(data) > threshold and + not pytest.config.getoption('--verbose') and + not is_exception): msg = '[{} lines suppressed, use -v to show]'.format( len(data) - threshold) data = [msg] + data[-threshold:]