print on errors at the end, not start

This commit is contained in:
David Halter
2012-09-04 12:16:01 +02:00
parent 0e467146d5
commit e359eb5898

View File

@@ -50,8 +50,8 @@ def run_definition_test(correct, source, line_nr, line, correct_start, path):
try:
result = defs(line_nr, len(line))
except Exception:
print('test @%s: %s' % (line_nr - 1, line))
print(traceback.format_exc())
print('test @%s: %s' % (line_nr - 1, line))
return 1
else:
should_be = set()