File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments