cpython: 122f952add3c (original) (raw)
Mercurial > cpython
changeset 71910:122f952add3c 3.2
Issue #12650: fix failures on some buildbots, when a subprocess takes a long time to spawn. [#12650]
Charles-François Natali neologix@free.fr | |
---|---|
date | Fri, 19 Aug 2011 00:24:00 +0200 |
parents | 9887d8127b10 |
children | a32ae2749cd1 f6b0c794495a |
files | Lib/test/test_subprocess.py |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-)[+] [-] Lib/test/test_subprocess.py 12 |
line wrap: on
line diff
--- 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[](#l1.7)
# should trigger the wait() of p[](#l1.8)
time.sleep(1)[](#l1.9)
with self.assertRaises(EnvironmentError) as c:[](#l1.10)
with subprocess.Popen(['nonexisting_i_hope'],[](#l1.11)
stdout=subprocess.PIPE,[](#l1.12)
stderr=subprocess.PIPE) as proc:[](#l1.13)
pass[](#l1.14)
# p should have been wait()ed on, and removed from the _active list[](#l1.15)
self.assertRaises(OSError, os.waitpid, pid, 0)[](#l1.16)
self.assertNotIn(ident, [id(o) for o in subprocess._active])[](#l1.17)
- 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