diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-11-01 16:40:17 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-11-01 16:40:17 (GMT) |
commit | 8291af2354d194fd60079380367f4ecb0eba5397 (patch) | |
tree | c64e8af703eedfefcebb67714dcee2d7bf1d6b02 /Lib | |
parent | 49998eec49f16262381219eb43dcb58bbe092842 (diff) | |
download | cpython-8291af2354d194fd60079380367f4ecb0eba5397.zip cpython-8291af2354d194fd60079380367f4ecb0eba5397.tar.gz cpython-8291af2354d194fd60079380367f4ecb0eba5397.tar.bz2 |
Fix ResourceWarning occuring on Windows. Close stdout/stderr pipes.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_gc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py index 9de7c29..0e5a397 100644 --- a/Lib/test/test_gc.py +++ b/Lib/test/test_gc.py @@ -489,6 +489,8 @@ class GCTests(unittest.TestCase): stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() + p.stdout.close() + p.stderr.close() self.assertEqual(p.returncode, 0) self.assertEqual(stdout.strip(), b"") return strip_python_stderr(stderr) |