tests: only show relevant traceback info
This commit is contained in:
parent
09fac756a9
commit
8ff0c48c64
1 changed files with 2 additions and 1 deletions
|
@ -74,6 +74,7 @@ def run_all(iterable):
|
|||
sys.stderr.write(" Traceback:\n")
|
||||
for mline in traceback.format_tb(exc_tb):
|
||||
for line in mline.rstrip().split("\n"):
|
||||
if not 'utilities.py' in line and not 'trivial.py' in line and not line.strip() == 'test()':
|
||||
sys.stderr.write(" " + line + "\n")
|
||||
sys.stderr.flush()
|
||||
return failed
|
||||
|
|
Loading…
Reference in a new issue