From 6df4993bb646e7f1a30f37c3f65a5b4c9c033cb0 Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Sun, 19 Jul 2026 23:48:14 +0530 Subject: [PATCH] fix ResourceWarnings of test_kill_issue43884 in asyncio (#154178) --- Lib/test/test_asyncio/test_subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 2e97fa5820f8..70480ffe4c55 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -220,7 +220,7 @@ class SubprocessMixin: # kills the process and all its children. creationflags = CREATE_NEW_PROCESS_GROUP proc = self.loop.run_until_complete( - asyncio.create_subprocess_shell(blocking_shell_command, stdout=asyncio.subprocess.PIPE, + asyncio.create_subprocess_shell(blocking_shell_command, creationflags=creationflags) ) self.loop.run_until_complete(asyncio.sleep(1)) -- 2.47.3