Skip to content

Commit faa8c13

Browse files
author
Victor Stinner
committed
test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools()
1 parent a3abd1d commit faa8c13

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_subprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,9 @@ def test_pipe_cloexec_real_tools(self):
10221022
self.assertTrue(readfiles, "The child hung")
10231023
self.assertEqual(p2.stdout.read(), data)
10241024

1025+
p1.stdout.close()
1026+
p2.stdout.close()
1027+
10251028
def test_close_fds(self):
10261029
fd_status = support.findfile("fd_status.py", subdir="subprocessdata")
10271030

0 commit comments

Comments
 (0)