From dab4e8a02d362f6c1a16aa82df32231bb29062c1 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 11 May 2014 19:05:23 +0200 Subject: [PATCH] Fix printing out error message when test fails and run with -bb --- Lib/test/test_signal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0