From 185edb4205a115e3d3c29ebfbc37c150699b14d3 Mon Sep 17 00:00:00 2001 From: sblondon Date: Fri, 16 Dec 2022 16:32:19 +0100 Subject: [PATCH] Remove unsupported python case (#871) --- tests/test_query.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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] -- 2.47.3