Fix debugging output to work with -W

This commit is contained in:
Antoine Pitrou 2014-05-11 16:36:22 +02:00
parent c1b22d9c22
commit ffd72737d3
1 changed files with 2 additions and 2 deletions

View 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()