mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix tests if Python compiled without SSL (#5367)
This commit is contained in:
parent
b2ec3615c8
commit
0f54e00e96
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue