Add 'traceback' as suspicious test output pattern.
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 13 May 2016 22:20:17 +0000 (15:20 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 13 May 2016 22:20:17 +0000 (15:20 -0700)
test/conftest.py

index d14350d2d9b42b59b88c4461cb992ec472d09c94..0da2f4b584bccbc20535d30dd3489664fad24b23 100644 (file)
@@ -35,7 +35,7 @@ def check_test_output(capfd):
         if count == 0 or count - cnt > 0:
             stderr = cp.sub('', stderr, count=count - cnt)
 
-    for pattern in ('exception', 'error', 'warning', 'fatal',
+    for pattern in ('exception', 'error', 'warning', 'fatal', 'traceback',
                     'fault', 'crash(?:ed)?', 'abort(?:ed)'):
         cp = re.compile(r'\b{}\b'.format(pattern), re.IGNORECASE | re.MULTILINE)
         hit = cp.search(stderr)