diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-08-19 03:14:40 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-08-19 03:14:40 (GMT) |
commit | 74adbaa7bd0e61847ff3eb4c77331093b6728446 (patch) | |
tree | 90bc326c2de842249744b15312a632778ca5d2bc /Lib | |
parent | 2736c5d47c688d13e161bdbbaadf5a74f8f85d2b (diff) | |
parent | 0d7cda3e6327251215560bc2e21404abe392289c (diff) | |
download | cpython-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.py | 4 |
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 |