From: Yury Selivanov Date: Mon, 15 Jan 2018 22:56:32 +0000 (-0500) Subject: Make asyncio tests run when there's no SSL module (#5196) X-Git-Tag: v3.7.0b1~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21102f0dc20cc347677191817c1b66e20ef7bf21;p=python Make asyncio tests run when there's no SSL module (#5196) --- diff --git a/Lib/test/test_asyncio/functional.py b/Lib/test/test_asyncio/functional.py index 5fd174b6f4..fbec462c1d 100644 --- a/Lib/test/test_asyncio/functional.py +++ b/Lib/test/test_asyncio/functional.py @@ -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,