Commit 74adbaa7 authored by Nadeem Vawda's avatar Nadeem Vawda

Merge: Fix ResourceWarnings in test_subprocess.

parents 2736c5d4 0d7cda3e
......@@ -1501,6 +1501,8 @@ class POSIXProcessTestCase(BaseTestCase):
'time.sleep(0.2)'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
self.addCleanup(p.stdout.close)
self.addCleanup(p.stderr.close)
ident = id(p)
pid = p.pid
del p
......@@ -1518,6 +1520,8 @@ class POSIXProcessTestCase(BaseTestCase):
'time.sleep(3)'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
self.addCleanup(p.stdout.close)
self.addCleanup(p.stderr.close)
ident = id(p)
pid = p.pid
del p
......
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