diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-05-11 17:05:23 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-05-11 17:05:23 (GMT) |
commit | dab4e8a02d362f6c1a16aa82df32231bb29062c1 (patch) | |
tree | 70fd4f1470be16baf3df80629ea2eb87865bf46f /Lib/test/test_signal.py | |
parent | 6b4b8d07229912e0e4275e6a9ddf5cacb65722c0 (diff) | |
download | cpython-dab4e8a02d362f6c1a16aa82df32231bb29062c1.zip cpython-dab4e8a02d362f6c1a16aa82df32231bb29062c1.tar.gz cpython-dab4e8a02d362f6c1a16aa82df32231bb29062c1.tar.bz2 |
Fix printing out error message when test fails and run with -bb
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | 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 index a6f2c64..74f74af 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) |