summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-08-18 22:25:07 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-08-18 22:25:07 (GMT)
commit2736c5d47c688d13e161bdbbaadf5a74f8f85d2b (patch)
tree01f3e5437590273cd1c342eef65499b10f17dbb2
parentea35d39a24281b8c3f3721ea64603035f30012a7 (diff)
parent72d161af51a3c838da79d30002f0f6fb65d792bd (diff)
downloadcpython-2736c5d47c688d13e161bdbbaadf5a74f8f85d2b.zip
cpython-2736c5d47c688d13e161bdbbaadf5a74f8f85d2b.tar.gz
cpython-2736c5d47c688d13e161bdbbaadf5a74f8f85d2b.tar.bz2
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
-rw-r--r--Lib/test/test_subprocess.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 950294d..978f772 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1507,18 +1507,6 @@ class POSIXProcessTestCase(BaseTestCase):
# check that p is in the active processes list
self.assertIn(ident, [id(o) for o in subprocess._active])
- # sleep a little to let the process exit, and create a new Popen: this
- # should trigger the wait() of p
- time.sleep(1)
- with self.assertRaises(EnvironmentError) as c:
- with subprocess.Popen(['nonexisting_i_hope'],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE) as proc:
- pass
- # p should have been wait()ed on, and removed from the _active list
- self.assertRaises(OSError, os.waitpid, pid, 0)
- self.assertNotIn(ident, [id(o) for o in subprocess._active])
-
def test_leak_fast_process_del_killed(self):
# Issue #12650: on Unix, if Popen.__del__() was called before the
# process exited, and the process got killed by a signal, it would never