diff options
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index caa36cfef5..fc98da5015 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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) |