]> granicus.if.org Git - python/commitdiff
test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools()
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Jan 2011 16:36:00 +0000 (16:36 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Jan 2011 16:36:00 +0000 (16:36 +0000)
Lib/test/test_subprocess.py

index f1c91435b5e7da6d61234a40bb7b7549e0c4d628..8b2699db05b8f1b3d1f2331a051385721fbb9b74 100644 (file)
@@ -1022,6 +1022,9 @@ class POSIXProcessTestCase(BaseTestCase):
         self.assertTrue(readfiles, "The child hung")
         self.assertEqual(p2.stdout.read(), data)
 
+        p1.stdout.close()
+        p2.stdout.close()
+
     def test_close_fds(self):
         fd_status = support.findfile("fd_status.py", subdir="subprocessdata")