Skip to content

Commit

Permalink
Fix test_cmd_line.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Nov 1, 2023
1 parent 5f3b94a commit 4f3292b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ def test_stdout_flush_at_shutdown(self):
self.assertEqual(b'', out)
self.assertEqual(120, rc)
self.assertRegex(err.decode('ascii', 'ignore'),
'Exception ignored in.*\nOSError: .*')
r'Exception ignored on flushing sys\.stdout:\n'
r'OSError: .*')

def test_closed_stdout(self):
# Issue #13444: if stdout has been explicitly closed, we should
Expand Down

0 comments on commit 4f3292b

Please sign in to comment.