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