Perfect your code
With built-in code review tools, GitHub makes it easy to raise the quality bar before you ship. Join the 40 million developers who've merged over 200 million pull requests.
Sign up for free See pricing for teams and enterprisesbpo-39006: Fix asyncio when the ssl module is missing #17524
Conversation
Fix asyncio when the ssl module is missing: only check for ssl.SSLSocket instance if the ssl module is available.
This comment has been minimized.
This comment has been minimized.
Thanks, @vstinner |
This comment has been minimized.
This comment has been minimized.
"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 ;-) |
This comment has been minimized.
This comment has been minimized.
@vstinner you are right. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 9, 2019
Thanks @vstinner for the PR |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 9, 2019
GH-17527 is a backport of this pull request to the 3.8 branch. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 9, 2019
GH-17528 is a backport of this pull request to the 3.7 branch. |
vstinner commentedDec 9, 2019
•
edited by bedevere-bot
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