diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2011-03-26 19:19:57 (GMT) |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2011-03-26 19:19:57 (GMT) |
commit | b8a5769a6d35931f4dc5395686f590b5dcb58cdd (patch) | |
tree | 744978aa3494130b7bf2d63c55c7565451290db3 /Lib/test | |
parent | 89461ef8fcc87996791a383f1973542a3487ce4f (diff) | |
download | cpython-b8a5769a6d35931f4dc5395686f590b5dcb58cdd.zip cpython-b8a5769a6d35931f4dc5395686f590b5dcb58cdd.tar.gz cpython-b8a5769a6d35931f4dc5395686f590b5dcb58cdd.tar.bz2 |
Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
Patch by Ben Hayden.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_subprocess.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 410849f..837bdb5 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -874,6 +874,7 @@ class ProcessTestCase(BaseTestCase): 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]) |