]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-116742: Fix subprocess test_check_output_timeout() (GH-130836) (#130874)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Mar 2025 12:00:41 +0000 (13:00 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Mar 2025 12:00:41 +0000 (13:00 +0100)
commited015d05f2820c16dde6e6f12d55acf05e3fd5ff
treed78b5f2de7359e67726ac9e3b538f27f77bf9251
parent8fe011af3864300df9b312584be449b3eb3e4bf8
[3.12] gh-116742: Fix subprocess test_check_output_timeout() (GH-130836) (#130874)

gh-116742: Fix subprocess test_check_output_timeout() (GH-130836)

Fix a race condition in test_check_output_timeout() of
test_subprocess. Don't write into stdout anymore, since there is no
reliable way to synchronize the parent and the child processes.

Change the timeout from 3 seconds to 0.1 seconds, and remove
@requires_resource('walltime') decorator.
(cherry picked from commit 67a942d4272145ccdbdf4ceff31318e176f71355)

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