diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-05-11 14:36:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-05-11 14:36:22 (GMT) |
commit | ffd72737d321bac6fbdb4ca7c70615ae4c9de387 (patch) | |
tree | 042b88c665c9bfb5e35828042c6aaa983062cfb9 | |
parent | c1b22d9c22f7fc4f0b3b0801556c92fe5849626a (diff) | |
download | cpython-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.py | 4 |
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() |