From: Victor Stinner Date: Sun, 11 Oct 2015 08:39:56 +0000 (+0200) Subject: lose #25373: Fix regrtest --slow with interrupted test X-Git-Tag: v3.5.1rc1~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c886f740b4947415031d4cb8816162aab9df399;p=thirdparty%2FPython%2Fcpython.git lose #25373: Fix regrtest --slow with interrupted test --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c246fe030846..dedfdfecb23a 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: