summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-02-21 21:55:48 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2011-02-21 21:55:48 +0000
commitce58dc7b166a4859f7e6e3483ac59fa679d78be9 (patch)
tree1d64ce745bfba451255ca99da741cb8acfd6be23 /Lib/test/test_subprocess.py
parent5ed8b2c737a71d6fd56757bd9fe108f2cf886664 (diff)
downloadcpython-git-ce58dc7b166a4859f7e6e3483ac59fa679d78be9.tar.gz
Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due
to open door files.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index cf6684d816..4b58308497 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1156,9 +1156,6 @@ class POSIXProcessTestCase(BaseTestCase):
open_fds = set()
- if support.verbose:
- print(" -- maxfd =", subprocess.MAXFD)
-
for x in range(5):
fds = os.pipe()
self.addCleanup(os.close, fds[0])
@@ -1173,10 +1170,6 @@ class POSIXProcessTestCase(BaseTestCase):
remaining_fds = set(map(int, output.split(b',')))
to_be_closed = open_fds - {fd}
- # Temporary debug output for intermittent failures
- if support.verbose:
- print(" -- fds that should have been closed:", to_be_closed)
- print(" -- fds that remained open:", remaining_fds)
self.assertIn(fd, remaining_fds, "fd to be passed not passed")
self.assertFalse(remaining_fds & to_be_closed,