Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72d161a

Browse files
author
Charles-François Natali
committed
Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
1 parent acaeff8 commit 72d161a

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Lib/test/test_subprocess.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,18 +1410,6 @@ def test_zombie_fast_process_del(self):
14101410
# check that p is in the active processes list
14111411
self.assertIn(ident, [id(o) for o in subprocess._active])
14121412

1413-
# sleep a little to let the process exit, and create a new Popen: this
1414-
# should trigger the wait() of p
1415-
time.sleep(1)
1416-
with self.assertRaises(EnvironmentError) as c:
1417-
with subprocess.Popen(['nonexisting_i_hope'],
1418-
stdout=subprocess.PIPE,
1419-
stderr=subprocess.PIPE) as proc:
1420-
pass
1421-
# p should have been wait()ed on, and removed from the _active list
1422-
self.assertRaises(OSError, os.waitpid, pid, 0)
1423-
self.assertNotIn(ident, [id(o) for o in subprocess._active])
1424-
14251413
def test_leak_fast_process_del_killed(self):
14261414
# Issue #12650: on Unix, if Popen.__del__() was called before the
14271415
# process exited, and the process got killed by a signal, it would never

0 commit comments

Comments
 (0)