]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116742: Fix subprocess test_check_output_timeout() (#130836)
authorVictor Stinner <vstinner@python.org>
Wed, 5 Mar 2025 10:51:33 +0000 (11:51 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Mar 2025 10:51:33 +0000 (10:51 +0000)
commit67a942d4272145ccdbdf4ceff31318e176f71355
treebd08c04a37dc509eb384ea8b33302e4e6e66808d
parent63d25f8d0c4f4626fb9f1131402d95fdaca34a57
gh-116742: Fix subprocess test_check_output_timeout() (#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.
Lib/test/test_subprocess.py