]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Nov 2025 06:53:00 +0000 (07:53 +0100)
committerGitHub <noreply@github.com>
Sat, 29 Nov 2025 06:53:00 +0000 (06:53 +0000)
commit2f3024f066500ff8727a2d0c551ebef5327b7cef
tree1d73cc304cf8b66438e215b32020627e8883d085
parent704bb69bd8d99c86359e174684b37a08a5d0c165
[3.13] gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a subsequent post-timeout call (GH-141477) (#142060)

* gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a subsequent post-timeout call (GH-141477)

* gh-141473: Fix subprocess.Popen.communicate to send input to stdin
* Docs: Clarify that `input` is one time only on `communicate()`
* NEWS entry
* Add a regression test.

---------
(cherry picked from commit 526d7a8bb47bd8ff58c829c30384cd70cc5d0747)

Co-authored-by: Artur Jamro <artur.jamro@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
* no assertStartsWith

---------

Co-authored-by: Artur Jamro <artur.jamro@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/subprocess.rst
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2025-11-27-20-16-38.gh-issue-141473.Wq4xVN.rst [new file with mode: 0644]