From 8291af2354d194fd60079380367f4ecb0eba5397 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Mon, 1 Nov 2010 16:40:17 +0000 Subject: Fix ResourceWarning occuring on Windows. Close stdout/stderr pipes. --- Lib/test/test_gc.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v0.12