]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35721: Close socket pair if Popen in _UnixSubprocessTransport fails (GH-11553)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 May 2019 12:35:56 +0000 (05:35 -0700)
committerGitHub <noreply@github.com>
Mon, 20 May 2019 12:35:56 +0000 (05:35 -0700)
commit3887932e1099931801876d53d05e25a43c3473b7
tree63c561da239e65be4af8f9c9d2bd719e4548137c
parent2d94d4f1a5f54f73450d2982eab54a6301741a32
bpo-35721: Close socket pair if Popen in _UnixSubprocessTransport fails (GH-11553)

This slightly expands an existing test case `test_popen_error` to trigger a `ResourceWarning` and fixes it.

https://bugs.python.org/issue35721
(cherry picked from commit 9932fd91e878b740704ff599522e945a4bbe2ae1)

Co-authored-by: Niklas Fiekas <niklas.fiekas@backscattering.de>
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_subprocess.py
Misc/ACKS
Misc/NEWS.d/next/Library/2019-01-18-16-23-00.bpo-35721.d8djAJ.rst [new file with mode: 0644]