From: Antoine Pitrou Date: Sun, 11 May 2014 14:24:45 +0000 (+0200) Subject: Fix debugging output to work with -bb X-Git-Tag: v3.5.0a1~1693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1b22d9c22f7fc4f0b3b0801556c92fe5849626a;p=thirdparty%2FPython%2Fcpython.git Fix debugging output to work with -bb --- diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index 60271f45e94a..5b6073e24b20 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -188,7 +188,7 @@ class CmdLineTest(unittest.TestCase): while True: data = stderr.read(4) if support.verbose: - print("repl stderr[:4]:", data) + print("repl stderr[:4]:", repr(data)) sys.stdout.flush() if data == b">>> ": break