From: sblondon Date: Fri, 16 Dec 2022 15:32:19 +0000 (+0100) Subject: Remove unsupported python case (#871) X-Git-Tag: v2.3.0rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185edb4205a115e3d3c29ebfbc37c150699b14d3;p=thirdparty%2Fdnspython.git Remove unsupported python case (#871) --- diff --git a/tests/test_query.py b/tests/test_query.py index 4586e321..f9b9d428 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -150,10 +150,7 @@ class QueryTests(unittest.TestCase): base_s.settimeout(2) base_s.connect(ll) ctx = ssl.create_default_context() - if sys.version_info >= (3, 7): - ctx.minimum_version = ssl.TLSVersion.TLSv1_2 - else: - ctx.options |= ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1 + ctx.minimum_version = ssl.TLSVersion.TLSv1_2 with ctx.wrap_socket( base_s, server_hostname="dns.google" ) as s: # lgtm[py/insecure-protocol]