Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dab4e8a

Browse files
committed
Fix printing out error message when test fails and run with -bb
1 parent 6b4b8d0 commit dab4e8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def handler(signum, frame):
454454
stdout = first_line + stdout
455455
exitcode = process.wait()
456456
if exitcode not in (2, 3):
457-
raise Exception("Child error (exit code %s): %s"
457+
raise Exception("Child error (exit code %s): %r"
458458
% (exitcode, stdout))
459459
return (exitcode == 3)
460460

0 commit comments

Comments
 (0)