[Python-checkins] cpython (merge 3.2 -> default): Merge with 3.2

ross.lagerwall python-checkins at python.org
Sat Mar 26 20:26:08 CET 2011


http://hg.python.org/cpython/rev/439e185c3a7b
changeset:   68982:439e185c3a7b
parent:      68978:d832756a82d9
parent:      68981:72f6f5a29e7a
user:        Ross Lagerwall <rosslagerwall at gmail.com>
date:        Sat Mar 26 21:22:09 2011 +0200
summary:
  Merge with 3.2

files:
  Lib/test/test_subprocess.py |  1 +
  Misc/ACKS                   |  1 +
  Misc/NEWS                   |  3 +++
  3 files changed, 5 insertions(+), 0 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
@@ -1325,6 +1325,7 @@
                              stdout=subprocess.PIPE,
                              bufsize=0)
         f = p.stdout
+        self.addCleanup(f.close)
         try:
             self.assertEqual(f.read(4), b"appl")
             self.assertIn(f, select.select([f], [], [], 0.0)[0])
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -358,6 +358,7 @@
 Larry Hastings
 Shane Hathaway
 Rycharde Hawkes
+Ben Hayden
 Jochen Hayek
 Christian Heimes
 Thomas Heller
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,9 @@
 Library
 -------
 
+- Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
+  Patch by Ben Hayden.
+
 - Issue #11635: Don't use polling in worker threads and processes launched by
   concurrent.futures.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list