]> granicus.if.org Git - python/commitdiff
Make asyncio tests run when there's no SSL module (#5196)
authorYury Selivanov <yury@magic.io>
Mon, 15 Jan 2018 22:56:32 +0000 (17:56 -0500)
committerGitHub <noreply@github.com>
Mon, 15 Jan 2018 22:56:32 +0000 (17:56 -0500)
Lib/test/test_asyncio/functional.py

index 5fd174b6f43ce04320b67c4da3d388fe102b10b1..fbec462c1dbfbd77d188d815a5ad6798a6f3219c 100644 (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,