Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-109594: Fix concurrent.futures test_timeout()#110018
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.@serhiy-storchaka: One less cc@pitrou |
I stress-tested test_timeout() on Linux with the following command. I interrupted it after 5 minutes and 958 successful runs. |
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.(cherry picked from commit9be283e)Co-authored-by: Victor Stinner <vstinner@python.org>Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.(cherry picked from commit9be283e)Co-authored-by: Victor Stinner <vstinner@python.org>GH-110021 is a backport of this pull request to the3.12 branch. |
GH-110022 is a backport of this pull request to the3.11 branch. |
…110022)gh-109594: Fix concurrent.futures test_timeout() (GH-110018)Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.(cherry picked from commit9be283e)Co-authored-by: Victor Stinner <vstinner@python.org>
Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.…110021)gh-109594: Fix concurrent.futures test_timeout() (GH-110018)Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.(cherry picked from commit9be283e)Co-authored-by: Victor Stinner <vstinner@python.org>
Fix test_timeout() of test_concurrent_futures.test_wait. Remove thefuture which may or may not complete depending if it takes longerthan the timeout ot not. Keep the second future which does notcomplete before wait(). Make also the test faster: 0.5 second insteadof 6 seconds, so remove @support.requires_resource('walltime')decorator.
Uh oh!
There was an error while loading.Please reload this page.
Fix test_timeout() of test_concurrent_futures.test_wait. Remove the future which may or may not complete depending if it takes longer than the timeout ot not. Keep the second future which does not complete before wait(). Make also the test faster: 0.5 second instead of 6 seconds, so remove @support.requires_resource('walltime') decorator.