[Python-checkins] cpython (merge 3.4 -> default): Fix printing out error message when test fails and run with -bb
antoine.pitrou
python-checkins at python.org
Sun May 11 19:09:03 CEST 2014
http://hg.python.org/cpython/rev/201fa77cef98
changeset: 90634:201fa77cef98
parent: 90632:2b292d6e536a
parent: 90633:8e9a00257305
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun May 11 19:05:50 2014 +0200
summary:
Fix printing out error message when test fails and run with -bb
files:
Lib/test/test_signal.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -473,7 +473,7 @@
stdout = first_line + stdout
exitcode = process.wait()
if exitcode not in (2, 3):
- raise Exception("Child error (exit code %s): %s"
+ raise Exception("Child error (exit code %s): %r"
% (exitcode, stdout))
return (exitcode == 3)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list