-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-116742: Fix subprocess test_check_output_timeout() #130836
Conversation
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.
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…-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 67a942d) Co-authored-by: Victor Stinner <vstinner@python.org>
GH-130873 is a backport of this pull request to the 3.13 branch. |
…-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 67a942d) Co-authored-by: Victor Stinner <vstinner@python.org>
GH-130874 is a backport of this pull request to the 3.12 branch. |
…) (#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 67a942d) Co-authored-by: Victor Stinner <vstinner@python.org>
…) (#130873) 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 67a942d) Co-authored-by: Victor Stinner <vstinner@python.org>
Merged, thanks for the review. |
|
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.