summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-01 20:57:43 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-01 20:57:43 (GMT)
commit571e8fda9b6fdf2172ee071457d5f9e73fe4d70d (patch)
treec3afdc96df8aa9712b6ef2f9aa4c2715506d145d
parent6c32b4a601951cd29dbc89f9bb9f6047a80bd18c (diff)
downloadcpython-571e8fda9b6fdf2172ee071457d5f9e73fe4d70d.zip
cpython-571e8fda9b6fdf2172ee071457d5f9e73fe4d70d.tar.gz
cpython-571e8fda9b6fdf2172ee071457d5f9e73fe4d70d.tar.bz2
regrtest: add the name of the failing test on a child error (-j option)
-rwxr-xr-xLib/test/regrtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 0dcd550..0b7e3d2 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -637,7 +637,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
assert result[1] == 'KeyboardInterrupt'
raise KeyboardInterrupt # What else?
if result[0] == CHILD_ERROR:
- raise Exception("Child error: {}".format(result[1]))
+ raise Exception("Child error on {}: {}".format(test, result[1]))
accumulate_result(test, result)
test_index += 1
except KeyboardInterrupt: