diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-08-17 14:00:12 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-08-17 14:00:12 (GMT) |
commit | c5a01f8551743bdc006f574bad62a793654ce0ca (patch) | |
tree | 880c52d341db2fc7068fca4f4a52fbfa86087cdc /Lib | |
parent | 8f003192941ff17463c47e5078ed40edfee91df5 (diff) | |
download | cpython-c5a01f8551743bdc006f574bad62a793654ce0ca.zip cpython-c5a01f8551743bdc006f574bad62a793654ce0ca.tar.gz cpython-c5a01f8551743bdc006f574bad62a793654ce0ca.tar.bz2 |
regrtest: set interrupted to True if re-run is interrupted
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/libregrtest/main.py | 3 |
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) |