]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110184: Fix subprocess test_pipesize_default() (GH-110465) (#110471)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Oct 2023 14:09:29 +0000 (07:09 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 14:09:29 +0000 (14:09 +0000)
commit7e07eca008bbe04dc9139dfffd4ea82e13c6d518
treebb805ad33054eb33b3f48ba86e5a7ea66ccb2278
parenteed92e4f7ec9e93a74f0e46e616c65902cc2f2a8
[3.12] gh-110184: Fix subprocess test_pipesize_default() (GH-110465) (#110471)

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