summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorPeter Astrand <astrand@lysator.liu.se>2004-10-21 19:28:34 (GMT)
committerPeter Astrand <astrand@lysator.liu.se>2004-10-21 19:28:34 (GMT)
commitc19ccc9f1137bceb830a635a199b0798cc6d3932 (patch)
tree2d10c0ea223e6f3e5eb6886ac4b2dcc16279aa78 /Lib/test
parent66e80baea29f0317cf252c62caa1c542f4b11af2 (diff)
downloadcpython-c19ccc9f1137bceb830a635a199b0798cc6d3932.zip
cpython-c19ccc9f1137bceb830a635a199b0798cc6d3932.tar.gz
cpython-c19ccc9f1137bceb830a635a199b0798cc6d3932.tar.bz2
Removed test_close_fds, because it's too unreliable. We simply cannot
know that the newly-started Python process only has 3 filedescriptors open. Fixes bug 1048808.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_subprocess.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 639a54d..a5d9d9c 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -421,16 +421,6 @@ class ProcessTestCase(unittest.TestCase):
preexec_fn=lambda: os.putenv("FRUIT", "apple"))
self.assertEqual(p.stdout.read(), "apple")
- def test_close_fds(self):
- # Make sure we have some fds open
- os.pipe()
- p = subprocess.Popen([sys.executable, "-c",
- 'import sys,os;' \
- 'sys.stdout.write(str(os.dup(0)))'],
- stdout=subprocess.PIPE, close_fds=1)
- # When all fds are closed, the next free fd should be 3.
- self.assertEqual(p.stdout.read(), "3")
-
def test_args_string(self):
# args is a string
f, fname = self.mkstemp()