Kaydet (Commit) 0d7cda3e authored tarafından Nadeem Vawda's avatar Nadeem Vawda

Fix ResourceWarnings in test_subprocess.

üst 72d161af
......@@ -1404,6 +1404,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
......@@ -1421,6 +1423,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