mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Fix printing out error message when test fails and run with -bb
This commit is contained in:
commit
5006a56e39
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ class SiginterruptTest(unittest.TestCase):
|
||||||
stdout = first_line + stdout
|
stdout = first_line + stdout
|
||||||
exitcode = process.wait()
|
exitcode = process.wait()
|
||||||
if exitcode not in (2, 3):
|
if exitcode not in (2, 3):
|
||||||
raise Exception("Child error (exit code %s): %s"
|
raise Exception("Child error (exit code %s): %r"
|
||||||
% (exitcode, stdout))
|
% (exitcode, stdout))
|
||||||
return (exitcode == 3)
|
return (exitcode == 3)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue