]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix debugging output to work with -bb
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 11 May 2014 14:24:45 +0000 (16:24 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 11 May 2014 14:24:45 +0000 (16:24 +0200)
Lib/test/test_cmd_line_script.py

index 60271f45e94afeeb1c0760736c7d68b3ffc61221..5b6073e24b20c084c1a3d1964e686607891f8fc7 100644 (file)
@@ -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