bpo-32622: Fix tests if Python compiled without SSL by asvetlov · Pull Request #5367 · python/cpython
Expand Up
@@ -2134,6 +2134,8 @@ def prepare(self, *, is_ssl=False, close_after=0):
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:
Expand Down