mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
GH-98407: fix test_kill_issue43884
to not leak child processes (GH-98491)
(cherry picked from commit 3b2724abcf
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
69b6b56d85
commit
3a1eb81abf
1 changed files with 4 additions and 1 deletions
|
@ -184,7 +184,10 @@ class SubprocessMixin:
|
|||
self.assertEqual(-signal.SIGKILL, returncode)
|
||||
|
||||
def test_kill_issue43884(self):
|
||||
blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(100000000)"'
|
||||
if sys.platform == 'win32':
|
||||
blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(100000000)"'
|
||||
else:
|
||||
blocking_shell_command = 'sleep 1; sleep 1'
|
||||
creationflags = 0
|
||||
if sys.platform == 'win32':
|
||||
from subprocess import CREATE_NEW_PROCESS_GROUP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue