exceptions should produce errors even in alternate run display

This commit is contained in:
David Halter
2013-04-27 20:55:51 +04:30
parent 199d80fa02
commit e99f7a25fe

View File

@@ -344,10 +344,17 @@ if __name__ == '__main__':
% (case.line_nr - 1, actual, desired))
return 1
import traceback
current = cases[0].path if cases else None
count = fails = 0
for c in cases:
if c.run(report):
try:
if c.run(report):
tests_fail += 1
fails += 1
except Exception:
traceback.print_exc()
print("\ttest fail @%d" % (c.line_nr - 1))
tests_fail += 1
fails += 1
count += 1