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: while True:
data = stderr.read(4) data = stderr.read(4)
if support.verbose: if support.verbose:
print("repl stderr[:4]:", repr(data)) print("repl stderr[:4]:", repr(data), file=sys.__stdout__)
sys.stdout.flush() sys.__stdout__.flush()
if data == b">>> ": if data == b">>> ":
break break
stderr.readline() stderr.readline()