summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-05-11 14:36:22 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-05-11 14:36:22 (GMT)
commitffd72737d321bac6fbdb4ca7c70615ae4c9de387 (patch)
tree042b88c665c9bfb5e35828042c6aaa983062cfb9
parentc1b22d9c22f7fc4f0b3b0801556c92fe5849626a (diff)
downloadcpython-ffd72737d321bac6fbdb4ca7c70615ae4c9de387.zip
cpython-ffd72737d321bac6fbdb4ca7c70615ae4c9de387.tar.gz
cpython-ffd72737d321bac6fbdb4ca7c70615ae4c9de387.tar.bz2
Fix debugging output to work with -W
-rw-r--r--Lib/test/test_cmd_line_script.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py
index 5b6073e..9a71fdb 100644
--- a/Lib/test/test_cmd_line_script.py
+++ b/Lib/test/test_cmd_line_script.py
@@ -188,8 +188,8 @@ class CmdLineTest(unittest.TestCase):
while True:
data = stderr.read(4)
if support.verbose:
- print("repl stderr[:4]:", repr(data))
- sys.stdout.flush()
+ print("repl stderr[:4]:", repr(data), file=sys.__stdout__)
+ sys.__stdout__.flush()
if data == b">>> ":
break
stderr.readline()