Skip to content
Snippets Groups Projects
Unverified Commit 3b2724ab authored by Kumar Aditya's avatar Kumar Aditya Committed by GitHub
Browse files

GH-98407: fix `test_kill_issue43884` to not leak child processes (#98491)

parent 1a217f9f
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,10 @@ def test_kill(self): ...@@ -184,7 +184,10 @@ def test_kill(self):
self.assertEqual(-signal.SIGKILL, returncode) self.assertEqual(-signal.SIGKILL, returncode)
def test_kill_issue43884(self): def test_kill_issue43884(self):
if sys.platform == 'win32':
blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(100000000)"' blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(100000000)"'
else:
blocking_shell_command = 'sleep 1; sleep 1'
creationflags = 0 creationflags = 0
if sys.platform == 'win32': if sys.platform == 'win32':
from subprocess import CREATE_NEW_PROCESS_GROUP from subprocess import CREATE_NEW_PROCESS_GROUP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment