We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec2fb4 commit 0983e01Copy full SHA for 0983e01
1 file changed
Lib/test/test_ssl.py
@@ -164,7 +164,10 @@ def is_ubuntu():
164
def seclevel_workaround(*ctxs):
165
""""Lower security level to '1' and allow all ciphers for TLS 1.0/1"""
166
for ctx in ctxs:
167
- if ctx.minimum_version <= ssl.TLSVersion.TLSv1_1:
+ if (
168
+ hasattr(ctx, "minimum_version") and
169
+ ctx.minimum_version <= ssl.TLSVersion.TLSv1_1
170
+ ):
171
ctx.set_ciphers("@SECLEVEL=1:ALL")
172
else:
173
0 commit comments