Skip to content

Commit db298cb

Browse files
committed
Additional review feedback: add comment and align ordering
1 parent 2125574 commit db298cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 4 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(os.path.join(init_name), "w") as f:
68176817
cmd = '''if 1:
68186818
import sys
6819-
print('stdout', file=sys.stdout)
68206819
print('stderr', file=sys.stderr)
6820+
print('stdout', file=sys.stdout)
68216821
'''
68226822
f.write(cmd)
68236823

@@ -6829,7 +6829,9 @@ def test_std_streams_flushed_after_preload(self):
68296829
support.print_warning(err.decode())
68306830
self.assertEqual(rc, 0)
68316831

6832-
# We want to see all the output if it isn't as expected
6832+
# We want to see all the output if it isn't as expected.
6833+
# Check stderr first, as it is more likely to be useful to see in the
6834+
# event of a failure.
68336835
self.maxDiff = None
68346836
self.assertEqual(err.decode().rstrip(), 'stderr')
68356837
self.assertEqual(out.decode().rstrip(), 'stdout')

0 commit comments

Comments
 (0)