From: Antoine Pitrou Date: Sun, 11 May 2014 17:05:23 +0000 (+0200) Subject: Fix printing out error message when test fails and run with -bb X-Git-Tag: v3.5.0a1~1688^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dab4e8a02d362f6c1a16aa82df32231bb29062c1;p=python Fix printing out error message when test fails and run with -bb --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index a6f2c64857..74f74af0b4 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -454,7 +454,7 @@ class SiginterruptTest(unittest.TestCase): 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)