]> granicus.if.org Git - python/commitdiff
regrtest: add the name of the failing test on a child error (-j option)
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 1 May 2011 20:57:43 +0000 (22:57 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 1 May 2011 20:57:43 +0000 (22:57 +0200)
Lib/test/regrtest.py

index 0dcd5508bbd0dd49311e5246d2d226d3a158299e..0b7e3d2521c03882f523fefbf2f8a71b5a94289b 100755 (executable)
@@ -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: