summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-17 14:00:12 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-08-17 14:00:12 (GMT)
commitc5a01f8551743bdc006f574bad62a793654ce0ca (patch)
tree880c52d341db2fc7068fca4f4a52fbfa86087cdc /Lib/test
parent8f003192941ff17463c47e5078ed40edfee91df5 (diff)
downloadcpython-c5a01f8551743bdc006f574bad62a793654ce0ca.zip
cpython-c5a01f8551743bdc006f574bad62a793654ce0ca.tar.gz
cpython-c5a01f8551743bdc006f574bad62a793654ce0ca.tar.bz2
regrtest: set interrupted to True if re-run is interrupted
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/libregrtest/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 92ecc5b..0723c43 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -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)