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

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