[Python-checkins] cpython (3.4): Fix printing out error message when test fails and run with -bb

antoine.pitrou python-checkins at python.org
Sun May 11 19:09:02 CEST 2014


http://hg.python.org/cpython/rev/8e9a00257305
changeset:   90633:8e9a00257305
branch:      3.4
parent:      90631:58e2116576cf
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun May 11 19:05:23 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
@@ -454,7 +454,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