summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-28 11:27:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-28 11:27:54 (GMT)
commitcf265fd02a0daacfa026b774a6eb2d7732b544a4 (patch)
tree44bb717591445e8e66711d2308d9542778bad36f /Lib
parentab900c21fcfb08f13467d1c6f47d03ab90180f89 (diff)
downloadcpython-cf265fd02a0daacfa026b774a6eb2d7732b544a4.zip
cpython-cf265fd02a0daacfa026b774a6eb2d7732b544a4.tar.gz
cpython-cf265fd02a0daacfa026b774a6eb2d7732b544a4.tar.bz2
Fixed a test for issue #21619 on Windows.
On Windows an OSError with errno=EINVAL is raised.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index caa36cf..fc98da5 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)