From: Kumar Aditya Date: Sun, 19 Jul 2026 18:18:14 +0000 (+0530) Subject: fix ResourceWarnings of test_kill_issue43884 in asyncio (#154178) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df4993bb646e7f1a30f37c3f65a5b4c9c033cb0;p=thirdparty%2FPython%2Fcpython.git fix ResourceWarnings of test_kill_issue43884 in asyncio (#154178) --- 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))