File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments