[Python-checkins] cpython (3.4): Fixed a test for issue #21619 on Windows.
serhiy.storchaka
python-checkins at python.org
Sat Feb 28 12:28:54 CET 2015
https://hg.python.org/cpython/rev/1b4d916329e7
changeset: 94784:1b4d916329e7
branch: 3.4
parent: 94782:b5e9ddbdd4a7
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Feb 28 13:27:54 2015 +0200
summary:
Fixed a test for issue #21619 on Windows.
On Windows an OSError with errno=EINVAL is raised.
files:
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
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -2531,7 +2531,7 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list