Kaydet (Commit) c5a01f85 authored tarafından Victor Stinner's avatar Victor Stinner

regrtest: set interrupted to True if re-run is interrupted

üst 8f003192
......@@ -254,6 +254,7 @@ class Regrtest:
self.ns.verbose = True
ok = runtest(self.ns, test)
except KeyboardInterrupt:
self.interrupted = True
# print a newline separate from the ^C
print()
break
......@@ -341,8 +342,8 @@ class Regrtest:
try:
result = runtest(self.ns, test)
except KeyboardInterrupt:
self.accumulate_result(test, (INTERRUPTED, None))
self.interrupted = True
self.accumulate_result(test, (INTERRUPTED, None))
break
else:
self.accumulate_result(test, result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment