]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154183)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 04:54:52 +0000 (06:54 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 04:54:52 +0000 (10:24 +0530)
fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178)
(cherry picked from commit 6df4993bb646e7f1a30f37c3f65a5b4c9c033cb0)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Lib/test/test_asyncio/test_subprocess.py

index c08eb7cf2615680903744d3253b3521cec560c5e..11be3e2142bd15743a7e9655a979ee4f59ab31a6 100644 (file)
@@ -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))