Fix tests if Python compiled without SSL (#5367) · python/cpython@0f54e00

Original file line numberDiff line numberDiff line change

@@ -2134,6 +2134,8 @@ def prepare(self, *, is_ssl=False, close_after=0):

21342134

port = support.find_unused_port()

21352135

srv_proto = MySendfileProto(loop=self.loop, close_after=close_after)

21362136

if is_ssl:

2137+

if not ssl:

2138+

self.skipTest("No ssl module")

21372139

srv_ctx = test_utils.simple_server_sslcontext()

21382140

cli_ctx = test_utils.simple_client_sslcontext()

21392141

else: