[Python-checkins] cpython: regrtest: add the name of the failing test on a child error (-j option)

victor.stinner python-checkins at python.org
Sun May 1 23:33:16 CEST 2011


http://hg.python.org/cpython/rev/9a0f1d7671be
changeset: 69740:9a0f1d7671be
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Sun May 01 22:57:43 2011 +0200
summary:
 regrtest: add the name of the failing test on a child error (-j option)
files:
 Lib/test/regrtest.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -637,7 +637,7 @@
 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:
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /