mirror of
https://github.com/python/cpython.git
synced 2025-09-05 00:11:10 +00:00
bpo-44011: Fix asyncio tests without ssl module (GH-25840)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
99ad742ea9
commit
37ebdf0a86
2 changed files with 9 additions and 3 deletions
|
@ -12,7 +12,8 @@ from . import protocols
|
|||
from . import transports
|
||||
from .log import logger
|
||||
|
||||
SSLAgainErrors = (ssl.SSLWantReadError, ssl.SSLSyscallError)
|
||||
if ssl is not None:
|
||||
SSLAgainErrors = (ssl.SSLWantReadError, ssl.SSLSyscallError)
|
||||
|
||||
|
||||
class SSLProtocolState(enum.Enum):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue