Skip to content

Commit da4df44

Browse files
committed
Don't write an newline to avoid any implicit flushes that might happen
1 parent 3f07ff7 commit da4df44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6816,8 +6816,8 @@ def test_std_streams_flushed_after_preload(self):
68166816
with open(init_name, "w") as f:
68176817
cmd = '''if 1:
68186818
import sys
6819-
print('stderr', file=sys.stderr)
6820-
print('stdout', file=sys.stdout)
6819+
print('stderr', end='', file=sys.stderr)
6820+
print('stdout', end='', file=sys.stdout)
68216821
'''
68226822
f.write(cmd)
68236823

0 commit comments

Comments
 (0)