-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-39006: Fix asyncio when the ssl module is missing #17524
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
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available.
Thanks, @vstinner |
"I've missed that we run tests without ssl module also. I (wrongly) thought we dropped this configuration from the supported matrix at some time." See https://bugs.python.org/issue39006 : it looks like a bug on the buildbot. But I chose to write a fix since the code already handles ImportError on "import ssl". If you consider that ssl is requires, test_asyncio must be skipped if ssl is missing and code handling ImportError should be removed. IMHO supporting missing ssl doesn't require too much maintenance and so can be kept ;-) |
@vstinner you are right. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available. (cherry picked from commit 82b4950) Co-authored-by: Victor Stinner <[email protected]>
GH-17527 is a backport of this pull request to the 3.8 branch. |
GH-17528 is a backport of this pull request to the 3.7 branch. |
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available. (cherry picked from commit 82b4950) Co-authored-by: Victor Stinner <[email protected]>
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available. (cherry picked from commit 82b4950) Co-authored-by: Victor Stinner <[email protected]>
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available. (cherry picked from commit 82b4950) Co-authored-by: Victor Stinner <[email protected]>
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available.
Fix asyncio when the ssl module is missing: only check for
ssl.SSLSocket instance if the ssl module is available.
https://bugs.python.org/issue39006