]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove unsupported python case (#871)
authorsblondon <stephane.blondon@gmail.com>
Fri, 16 Dec 2022 15:32:19 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 15:32:19 +0000 (07:32 -0800)
tests/test_query.py

index 4586e32169997d9073f383024ab1e2fd41e7254c..f9b9d42882e92fd33b5746fd5ef374e28b39f910 100644 (file)
@@ -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]