Commit 8291af23 authored by Brian Curtin's avatar Brian Curtin

Fix ResourceWarning occuring on Windows. Close stdout/stderr pipes.

parent 49998eec
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment