summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-01-15 22:56:32 (GMT)
committerGitHub <noreply@github.com>2018-01-15 22:56:32 (GMT)
commit21102f0dc20cc347677191817c1b66e20ef7bf21 (patch)
tree92bacfe32ad26b23b3c9477436cbf006f5852eca
parentcb064fc2321ce8673fe365e9ef60445a27657f54 (diff)
downloadcpython-21102f0dc20cc347677191817c1b66e20ef7bf21.zip
cpython-21102f0dc20cc347677191817c1b66e20ef7bf21.tar.gz
cpython-21102f0dc20cc347677191817c1b66e20ef7bf21.tar.bz2
Make asyncio tests run when there's no SSL module (#5196)
-rw-r--r--Lib/test/test_asyncio/functional.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/functional.py b/Lib/test/test_asyncio/functional.py
index 5fd174b..fbec462 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,