Skip to content

Commit 0f54e00

Browse files
authored
Fix tests if Python compiled without SSL (#5367)
1 parent b2ec361 commit 0f54e00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 2 additions & 0 deletions
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:

0 commit comments

Comments
 (0)