Fix tests if Python compiled without SSL (#5367)
This commit is contained in:
parent
b2ec3615c8
commit
0f54e00e96
|
@ -2134,6 +2134,8 @@ class SendfileMixin:
|
||||||
port = support.find_unused_port()
|
port = support.find_unused_port()
|
||||||
srv_proto = MySendfileProto(loop=self.loop, close_after=close_after)
|
srv_proto = MySendfileProto(loop=self.loop, close_after=close_after)
|
||||||
if is_ssl:
|
if is_ssl:
|
||||||
|
if not ssl:
|
||||||
|
self.skipTest("No ssl module")
|
||||||
srv_ctx = test_utils.simple_server_sslcontext()
|
srv_ctx = test_utils.simple_server_sslcontext()
|
||||||
cli_ctx = test_utils.simple_client_sslcontext()
|
cli_ctx = test_utils.simple_client_sslcontext()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue