From 0c886f740b4947415031d4cb8816162aab9df399 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 11 Oct 2015 10:39:56 +0200 Subject: [PATCH] lose #25373: Fix regrtest --slow with interrupted test --- Lib/test/regrtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c246fe0308..dedfdfecb2 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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: -- 2.40.0