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 06e971f commit 3447750Copy full SHA for 3447750
Lib/test/test_ssl.py
@@ -168,7 +168,10 @@ def is_ubuntu():
168
def seclevel_workaround(*ctxs):
169
""""Lower security level to '1' and allow all ciphers for TLS 1.0/1"""
170
for ctx in ctxs:
171
- if ctx.minimum_version <= ssl.TLSVersion.TLSv1_1:
+ if (
172
+ hasattr(ctx, "minimum_version") and
173
+ ctx.minimum_version <= ssl.TLSVersion.TLSv1_1
174
+ ):
175
ctx.set_ciphers("@SECLEVEL=1:ALL")
176
else:
177
0 commit comments