summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-08-19 03:14:40 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-08-19 03:14:40 (GMT)
commit74adbaa7bd0e61847ff3eb4c77331093b6728446 (patch)
tree90bc326c2de842249744b15312a632778ca5d2bc /Lib
parent2736c5d47c688d13e161bdbbaadf5a74f8f85d2b (diff)
parent0d7cda3e6327251215560bc2e21404abe392289c (diff)
downloadcpython-74adbaa7bd0e61847ff3eb4c77331093b6728446.zip
cpython-74adbaa7bd0e61847ff3eb4c77331093b6728446.tar.gz
cpython-74adbaa7bd0e61847ff3eb4c77331093b6728446.tar.bz2
Merge: Fix ResourceWarnings in test_subprocess.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 978f772..432d324 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1501,6 +1501,8 @@ class POSIXProcessTestCase(BaseTestCase):
'time.sleep(0.2)'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
+ self.addCleanup(p.stdout.close)
+ self.addCleanup(p.stderr.close)
ident = id(p)
pid = p.pid
del p
@@ -1518,6 +1520,8 @@ class POSIXProcessTestCase(BaseTestCase):
'time.sleep(3)'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
+ self.addCleanup(p.stdout.close)
+ self.addCleanup(p.stderr.close)
ident = id(p)
pid = p.pid
del p