From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 20 Jul 2026 04:55:24 +0000 (+0200) Subject: [3.13] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154185) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a90bb4b4dc78f693d9be17d68ce6e25c15bd04b;p=thirdparty%2FPython%2Fcpython.git [3.13] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154185) fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (cherry picked from commit 6df4993bb646e7f1a30f37c3f65a5b4c9c033cb0) Co-authored-by: Kumar Aditya --- diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 0c33bf85f67b..18f7f9f90efc 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -250,7 +250,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))