]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
lose #25373: Fix regrtest --slow with interrupted test
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 11 Oct 2015 08:39:56 +0000 (10:39 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 11 Oct 2015 08:39:56 +0000 (10:39 +0200)
Lib/test/regrtest.py

index c246fe03084657410dee4f7f4dd865e9d0954c52..dedfdfecb23a23894f2d45cb9d45f2f5973435b0 100755 (executable)
@@ -659,7 +659,8 @@ def main(tests=None, **kwargs):
 
     def accumulate_result(test, result):
         ok, test_time = result
-        test_times.append((test_time, test))
+        if ok not in (CHILD_ERROR, INTERRUPTED):
+            test_times.append((test_time, test))
         if ok == PASSED:
             good.append(test)
         elif ok == FAILED: