commit | 8291af2354d194fd60079380367f4ecb0eba5397 | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian.curtin@gmail.com> | Mon Nov 01 16:40:17 2010 +0000 |
committer | Brian Curtin <brian.curtin@gmail.com> | Mon Nov 01 16:40:17 2010 +0000 |
tree | c64e8af703eedfefcebb67714dcee2d7bf1d6b02 | |
parent | 49998eec49f16262381219eb43dcb58bbe092842 [diff] |
Fix ResourceWarning occuring on Windows. Close stdout/stderr pipes.
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 @@ 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)