]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110184: Fix subprocess test_pipesize_default() (GH-110465) (#110472)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Oct 2023 14:11:51 +0000 (07:11 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 14:11:51 +0000 (14:11 +0000)
commit49a45f6cd80605998eb50fd95ca4b5531674e290
treef0ab5dc47b0e7188ad0d0e5c075a137832153b37
parent88223f15d792159bb2ab26923cb21bee910a4565
[3.11] gh-110184: Fix subprocess test_pipesize_default() (GH-110465) (#110472)

gh-110184: Fix subprocess test_pipesize_default() (GH-110465)

For proc.stdin, get the size of the read end of the test pipe.

Use subprocess context manager ("with proc:").
(cherry picked from commit d023d4166b255023dac448305270350030101481)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_subprocess.py