]> granicus.if.org Git - python/commitdiff
Fix tests if Python compiled without SSL (#5367)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 27 Jan 2018 22:00:37 +0000 (00:00 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2018 22:00:37 +0000 (00:00 +0200)
Lib/test/test_asyncio/test_events.py

index b66d91d415e8360704946fc1a9b16736d5c90ad4..f54802cf8af21a2141083a426a686db8e2d7010e 100644 (file)
@@ -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: