[Python-checkins]
python/dist/src/Lib/test test_subprocess.py, 1.12, 1.13
astrand at users.sourceforge.net
astrand at users.sourceforge.net
Thu Oct 21 21:28:36 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14067
Modified Files:
test_subprocess.py
Log Message:
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.
Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- test_subprocess.py 14 Oct 2004 04:16:54 -0000 1.12
+++ test_subprocess.py 21 Oct 2004 19:28:34 -0000 1.13
@@ -421,16 +421,6 @@
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()
More information about the Python-checkins
mailing list