Skip to content

Commit

Permalink
Fix tests on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Nov 1, 2023
1 parent 4f3292b commit 6445a4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/test/test_cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,9 @@ def test_stdout_flush_at_shutdown(self):
rc, out, err = assert_python_failure('-c', code)
self.assertEqual(b'', out)
self.assertEqual(120, rc)
self.assertRegex(err.decode('ascii', 'ignore'),
r'Exception ignored on flushing sys\.stdout:\n'
r'OSError: .*')
self.assertIn(b'Exception ignored on flushing sys.stdout:\n'
b'OSError: '.replace(b'\n', os.linesep.encode()),
err)

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

0 comments on commit 6445a4a

Please sign in to comment.