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

Skip to content

Commit 5006a56

Browse files
committed
Fix printing out error message when test fails and run with -bb
2 parents 3a0cdd5 + dab4e8a commit 5006a56

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
@@ -473,7 +473,7 @@ def handler(signum, frame):
473473
stdout = first_line + stdout
474474
exitcode = process.wait()
475475
if exitcode not in (2, 3):
476-
raise Exception("Child error (exit code %s): %s"
476+
raise Exception("Child error (exit code %s): %r"
477477
% (exitcode, stdout))
478478
return (exitcode == 3)
479479

0 commit comments

Comments
 (0)