]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-141473: Speed up subprocess test_communicate_timeout_large_input long tail...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 Apr 2026 04:29:47 +0000 (06:29 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Apr 2026 04:29:47 +0000 (04:29 +0000)
commit5770df43dc6d8d23b66b843ee708e4b239af35a8
treeb333f025b0f0ae4469219112ad62384150f2033d
parent15e2b64cd8bfaf0d5127584a88bb6b929f8dcc19
[3.14] gh-141473: Speed up subprocess test_communicate_timeout_large_input long tail (GH-149003) (#149004)

gh-141473: Speed up subprocess test_communicate_timeout_large_input long tail (GH-149003)

gh-141473: Speed up test_communicate_timeout_large_input

Replace the slow reader's 30s sleep with a parent-driven wake over a
loopback socket so post-timeout communicate() doesn't block waiting
for the child to wake on its own. Worst-case runtime: ~30s -> <1s.
(cherry picked from commit e1384cfd25b4fba5e0f8f3e6b536930e2e6cf5cf)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Lib/test/test_subprocess.py