summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-08-18 22:24:00 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-08-18 22:24:00 (GMT)
commit72d161af51a3c838da79d30002f0f6fb65d792bd (patch)
tree5f00a0f69ab39b08128e3676525d8694dec04135 /Lib
parentacaeff8f159a452ecda6be3ec9b2aeeaedc029f3 (diff)
downloadcpython-72d161af51a3c838da79d30002f0f6fb65d792bd.zip
cpython-72d161af51a3c838da79d30002f0f6fb65d792bd.tar.gz
cpython-72d161af51a3c838da79d30002f0f6fb65d792bd.tar.bz2
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
Diffstat (limited to 'Lib')
-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 06b0f0e..b3a5fb0 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1410,18 +1410,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