]> granicus.if.org Git - python/commitdiff
Fix printing out error message when test fails and run with -bb
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 11 May 2014 17:05:23 +0000 (19:05 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 11 May 2014 17:05:23 +0000 (19:05 +0200)
Lib/test/test_signal.py

index a6f2c64857d71cfffe166910e4fe69c923311d77..74f74af0b469ed59f9c7b2da11766107abcdafcb 100644 (file)
@@ -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)