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 64be96a commit 512742dCopy full SHA for 512742d
1 file changed
Lib/test/test_ssl.py
@@ -157,7 +157,10 @@ def is_ubuntu():
157
def seclevel_workaround(*ctxs):
158
""""Lower security level to '1' and allow all ciphers for TLS 1.0/1"""
159
for ctx in ctxs:
160
- if ctx.minimum_version <= ssl.TLSVersion.TLSv1_1:
+ if (
161
+ hasattr(ctx, "minimum_version") and
162
+ ctx.minimum_version <= ssl.TLSVersion.TLSv1_1
163
+ ):
164
ctx.set_ciphers("@SECLEVEL=1:ALL")
165
else:
166
0 commit comments