summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2018-01-28 00:00:37 +0200
committerGitHub <noreply@github.com>2018-01-28 00:00:37 +0200
commit0f54e00e9633638a8da7f35b2f65556396eedfd0 (patch)
treef0be3c8f01eade41150a7f0e1351c18da2067ae3
parentb2ec3615c81ca4f3c938245842a45956da8d5acb (diff)
downloadcpython-git-0f54e00e9633638a8da7f35b2f65556396eedfd0.tar.gz
Fix tests if Python compiled without SSL (#5367)
-rw-r--r--Lib/test/test_asyncio/test_events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index b66d91d415..f54802cf8a 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -2134,6 +2134,8 @@ class SendfileMixin:
port = support.find_unused_port()
srv_proto = MySendfileProto(loop=self.loop, close_after=close_after)
if is_ssl:
+ if not ssl:
+ self.skipTest("No ssl module")
srv_ctx = test_utils.simple_server_sslcontext()
cli_ctx = test_utils.simple_client_sslcontext()
else: