[Python-checkins] cpython (merge 3.1 -> 3.2): Merge fix for #11490 from 3.1.
r.david.murray
python-checkins at python.org
Mon Mar 14 03:50:26 CET 2011
http://hg.python.org/cpython/rev/67f4ef6094ed
changeset: 68433:67f4ef6094ed
branch: 3.2
parent: 68429:4c59cd84086f
parent: 68432:2b75ac7c9c12
user: R David Murray <rdmurray at bitdance.com>
date: Sun Mar 13 22:26:53 2011 -0400
summary:
Merge fix for #11490 from 3.1.
files:
Lib/test/test_subprocess.py
Misc/NEWS
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
@@ -587,7 +587,8 @@
subprocess.Popen(['nonexisting_i_hope'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- if c.exception.errno != errno.ENOENT: # ignore "no such file"
+ # ignore errors that indicate the command was not found
+ if c.exception.errno not in (errno.ENOENT, errno.EACCES):
raise c.exception
def test_issue8780(self):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,9 @@
Tests
-----
+- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a
+ false positive if the last directory in the path is inaccessible.
+
- Issue #11223: Fix test_threadsignals to fail, not hang, when the
non-semaphore implementation of locks is used under POSIX.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list