-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
gh-130736: Fix asyncio test_shutdown_default_executor_timeout() #130800
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
Conversation
I think we should use a |
Replace time.sleep() with threading.Event.
e4ea1cb
to
3f59d55
Compare
You're right. I rewrote my PR to use an event instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One comment below about timeout
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…pythonGH-130800) Replace time.sleep() with threading.Event. (cherry picked from commit 6c48ed7) Co-authored-by: Victor Stinner <vstinner@python.org>
GH-130825 is a backport of this pull request to the 3.13 branch. |
…pythonGH-130800) Replace time.sleep() with threading.Event. (cherry picked from commit 6c48ed7) Co-authored-by: Victor Stinner <vstinner@python.org>
GH-130826 is a backport of this pull request to the 3.12 branch. |
|
…python#130800) Replace time.sleep() with threading.Event.
Use a ridiculous small timeout (1 nanosecond) instead of 10 ms.
test_shutdown_default_executor_timeout
asyncio test is flaky #130736