Commit cf265fd0 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed a test for issue #21619 on Windows.

On Windows an OSError with errno=EINVAL is raised.
parent ab900c21
......@@ -2531,7 +2531,7 @@ class ContextManagerTests(BaseTestCase):
proc.stdout.read() # Make sure subprocess has closed its input
proc.stdin.write(b"buffered data")
self.assertIsNone(proc.returncode)
self.assertRaises(BrokenPipeError, proc.__exit__, None, None, None)
self.assertRaises(OSError, proc.__exit__, None, None, None)
self.assertEqual(0, proc.returncode)
self.assertTrue(proc.stdin.closed)
self.assertTrue(proc.stdout.closed)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment