-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-44287: asyncio test_popen() uses longer timeout #26832
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
@pablogsal: Let me introduce to you the battle-tested timeout. |
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.
I only hope these are military grade timeout
@@ -107,7 +107,8 @@ def test_popen(self): | |||
|
|||
events = [ovin.event, ovout.event, overr.event] | |||
# Super-long timeout for slow buildbots. | |||
res = _winapi.WaitForMultipleObjects(events, True, 10000) | |||
res = _winapi.WaitForMultipleObjects(events, True, | |||
support.SHORT_TIMEOUT * 1000) |
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.
TypeError: WaitForMultipleObjects() argument 3 must be int, not float
support.SHORT_TIMEOUT looks like float value (30.0)
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.
Oh right, it should now be fixed.
Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds.
It is since I updated my PR. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9. |
GH-26841 is a backport of this pull request to the 3.10 branch. |
Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds. (cherry picked from commit be1cb32) Co-authored-by: Victor Stinner <[email protected]>
Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds. (cherry picked from commit be1cb32) Co-authored-by: Victor Stinner <[email protected]>
GH-26842 is a backport of this pull request to the 3.9 branch. |
Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds. (cherry picked from commit be1cb32) Co-authored-by: Victor Stinner <[email protected]>
Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds. (cherry picked from commit be1cb32) Co-authored-by: Victor Stinner <[email protected]>
Fix asyncio test_popen() of test_windows_utils by using a longer
timeout. Use battle-tested test.support.SHORT_TIMEOUT timeout rather
than a hardcoded timeout of 10 seconds: it's 30 seconds by default,
but it is made longer on slow buildbots.
WaitForMultipleObjects() timeout argument is in milliseconds.
https://bugs.python.org/issue44287