[Python-checkins] cpython: Fix debugging output to work with -bb

antoine.pitrou python-checkins at python.org
Sun May 11 16:24:55 CEST 2014


http://hg.python.org/cpython/rev/a4b796be7786
changeset:   90627:a4b796be7786
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun May 11 16:24:45 2014 +0200
summary:
  Fix debugging output to work with -bb

files:
  Lib/test/test_cmd_line_script.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py
--- a/Lib/test/test_cmd_line_script.py
+++ b/Lib/test/test_cmd_line_script.py
@@ -188,7 +188,7 @@
             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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list