Fix printing out error message when test fails and run with -bb

This commit is contained in:
Antoine Pitrou 2014-05-11 19:05:23 +02:00
parent 6b4b8d0722
commit dab4e8a02d
1 changed files with 1 additions and 1 deletions

View 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)