summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-28 11:28:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-28 11:28:19 (GMT)
commit6ab0ec935260247640fd963f29e446238fb436bd (patch)
treeff1e278799183d60b8c38c97b66db72fb6ac1b75 /Lib/test/test_subprocess.py
parent86ba76570590b10ebd0b6f9b2e53252d8127de0e (diff)
parentcf265fd02a0daacfa026b774a6eb2d7732b544a4 (diff)
downloadcpython-6ab0ec935260247640fd963f29e446238fb436bd.zip
cpython-6ab0ec935260247640fd963f29e446238fb436bd.tar.gz
cpython-6ab0ec935260247640fd963f29e446238fb436bd.tar.bz2
Fixed a test for issue #21619 on Windows.
On Windows an OSError with errno=EINVAL is raised.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-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 abce481..7000f87 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -2512,7 +2512,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)