Kaydet (Commit) faa8c13e authored tarafından Victor Stinner's avatar Victor Stinner

test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools()

üst a3abd1d2
...@@ -1022,6 +1022,9 @@ class POSIXProcessTestCase(BaseTestCase): ...@@ -1022,6 +1022,9 @@ class POSIXProcessTestCase(BaseTestCase):
self.assertTrue(readfiles, "The child hung") self.assertTrue(readfiles, "The child hung")
self.assertEqual(p2.stdout.read(), data) self.assertEqual(p2.stdout.read(), data)
p1.stdout.close()
p2.stdout.close()
def test_close_fds(self): def test_close_fds(self):
fd_status = support.findfile("fd_status.py", subdir="subprocessdata") fd_status = support.findfile("fd_status.py", subdir="subprocessdata")
......
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