From: Victor Stinner Date: Mon, 23 May 2011 21:16:09 +0000 (+0200) Subject: (Merge 3.2) Issue #12074: regrtest displays also the current number of failures X-Git-Tag: v3.3.0a1~2183^2~141^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08c719eb955fd5fb8bb3e39c9c39e5b50b539179;p=thirdparty%2FPython%2Fcpython.git (Merge 3.2) Issue #12074: regrtest displays also the current number of failures --- 08c719eb955fd5fb8bb3e39c9c39e5b50b539179 diff --cc Lib/test/regrtest.py index 2a08de4c72d1,a8726b52465f..ccbe6f969979 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@@ -640,9 -592,6 +642,8 @@@ def main(tests=None, testdir=None, verb if result[0] == INTERRUPTED: assert result[1] == 'KeyboardInterrupt' raise KeyboardInterrupt # What else? + if result[0] == CHILD_ERROR: + raise Exception("Child error on {}: {}".format(test, result[1])) - accumulate_result(test, result) test_index += 1 except KeyboardInterrupt: interrupted = True