mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-01 11:23:45 +08:00
fix a small issue in the alternative test runner
This commit is contained in:
1 parent
53a32d8304
commit
a1bc644bfb
1 file changed
+5
-4
+5
-4
@@ -365,6 +365,11 @@ if __name__ == '__main__':
|
||||
current = cases[0].path if cases else None
|
||||
count = fails = 0
|
||||
for c in cases:
|
||||
if current != c.path:
|
||||
file_change(current, count, fails)
|
||||
current = c.path
|
||||
count = fails = 0
|
||||
|
||||
try:
|
||||
if c.run(report):
|
||||
tests_fail += 1
|
||||
@@ -380,10 +385,6 @@ if __name__ == '__main__':
|
||||
|
||||
count += 1
|
||||
|
||||
if current != c.path:
|
||||
file_change(current, count, fails)
|
||||
current = c.path
|
||||
count = fails = 0
|
||||
file_change(current, count, fails)
|
||||
|
||||
print('\nSummary: (%s fails of %s tests) in %.3fs' % (tests_fail,
|
||||
|
||||
Reference in new issue
Block a user