[Python-checkins] cpython (merge 3.4 -> default): 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/eae459e35cb9
changeset: 94785:eae459e35cb9
parent: 94783:cdac249808a8
parent: 94784:1b4d916329e7
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Feb 28 13:28:19 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
@@ -2512,7 +2512,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