From 71e416c66670716a08b8b40fbe08a7a61dad6c38 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Mon, 15 Jan 2018 16:12:19 -0500 Subject: [PATCH] Make asyncio tests run when there's no SSL module --- Lib/test/test_asyncio/functional.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/test/test_asyncio/functional.py b/Lib/test/test_asyncio/functional.py index 5fd174b6f43ce0..fbec462c1dbfbd 100644 --- a/Lib/test/test_asyncio/functional.py +++ b/Lib/test/test_asyncio/functional.py @@ -5,7 +5,6 @@ import pprint import select import socket -import ssl import tempfile import threading @@ -146,8 +145,6 @@ def start_tls(self, ssl_context, *, 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,