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

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 0f54e00

Fix tests if Python compiled without SSL (#5367)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -2134,6 +2134,8 @@ def prepare(self, *, is_ssl=False, close_after=0):
2134 2134 port = support.find_unused_port()
2135 2135 srv_proto = MySendfileProto(loop=self.loop, close_after=close_after)
2136 2136 if is_ssl:
2137 +if not ssl:
2138 +self.skipTest("No ssl module")
2137 2139 srv_ctx = test_utils.simple_server_sslcontext()
2138 2140 cli_ctx = test_utils.simple_client_sslcontext()
2139 2141 else: