Skip to content

Commit 6ab0ec9

Browse files
Fixed a test for issue #21619 on Windows.
On Windows an OSError with errno=EINVAL is raised.
2 parents 86ba765 + cf265fd commit 6ab0ec9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ def test_broken_pipe_cleanup(self):
25122512
proc.stdout.read() # Make sure subprocess has closed its input
25132513
proc.stdin.write(b"buffered data")
25142514
self.assertIsNone(proc.returncode)
2515-
self.assertRaises(BrokenPipeError, proc.__exit__, None, None, None)
2515+
self.assertRaises(OSError, proc.__exit__, None, None, None)
25162516
self.assertEqual(0, proc.returncode)
25172517
self.assertTrue(proc.stdin.closed)
25182518
self.assertTrue(proc.stdout.closed)

0 commit comments

Comments
 (0)