bpo-44011: Fix asyncio tests without ssl module (GH-25840)

Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
Christian Heimes 2021-05-03 09:38:56 +02:00 committed by GitHub
parent 99ad742ea9
commit 37ebdf0a86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -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):