tests: only show relevant traceback info

This commit is contained in:
Dane Springmeyer 2013-06-02 13:41:14 -07:00
parent 09fac756a9
commit 8ff0c48c64

View file

@ -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