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 df6ac7e commit 34992cfCopy full SHA for 34992cf
1 file changed
Lib/test/test_ssl.py
@@ -190,11 +190,13 @@ def has_tls_version(version):
190
# be compiled in but disabled by a policy or config option.
191
ctx = ssl.SSLContext()
192
if (
193
+ hasattr(ctx, 'minimum_version') and
194
ctx.minimum_version != ssl.TLSVersion.MINIMUM_SUPPORTED and
195
version < ctx.minimum_version
196
):
197
return False
198
199
+ hasattr(ctx, 'maximum_version') and
200
ctx.maximum_version != ssl.TLSVersion.MAXIMUM_SUPPORTED and
201
version > ctx.maximum_version
202
0 commit comments