mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
exceptions should produce errors even in alternate run display
This commit is contained in:
@@ -344,12 +344,19 @@ if __name__ == '__main__':
|
|||||||
% (case.line_nr - 1, actual, desired))
|
% (case.line_nr - 1, actual, desired))
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
import traceback
|
||||||
current = cases[0].path if cases else None
|
current = cases[0].path if cases else None
|
||||||
count = fails = 0
|
count = fails = 0
|
||||||
for c in cases:
|
for c in cases:
|
||||||
|
try:
|
||||||
if c.run(report):
|
if c.run(report):
|
||||||
tests_fail += 1
|
tests_fail += 1
|
||||||
fails += 1
|
fails += 1
|
||||||
|
except Exception:
|
||||||
|
traceback.print_exc()
|
||||||
|
print("\ttest fail @%d" % (c.line_nr - 1))
|
||||||
|
tests_fail += 1
|
||||||
|
fails += 1
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
if current != c.path:
|
if current != c.path:
|
||||||
|
|||||||
Reference in New Issue
Block a user