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,7 +74,8 @@ def run_all(iterable):
|
||||||
sys.stderr.write(" Traceback:\n")
|
sys.stderr.write(" Traceback:\n")
|
||||||
for mline in traceback.format_tb(exc_tb):
|
for mline in traceback.format_tb(exc_tb):
|
||||||
for line in mline.rstrip().split("\n"):
|
for line in mline.rstrip().split("\n"):
|
||||||
sys.stderr.write(" " + line + "\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()
|
sys.stderr.flush()
|
||||||
return failed
|
return failed
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue