Make asyncio tests run when there's no SSL module (#5196)

This commit is contained in:
Yury Selivanov 2018-01-15 17:56:32 -05:00 committed by GitHub
parent cb064fc232
commit 21102f0dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -5,7 +5,6 @@ import os
import pprint
import select
import socket
import ssl
import tempfile
import threading
@ -146,8 +145,6 @@ class TestSocketWrapper:
server_side=False,
server_hostname=None):
assert isinstance(ssl_context, ssl.SSLContext)
ssl_sock = ssl_context.wrap_socket(
self.__sock, server_side=server_side,
server_hostname=server_hostname,