diff options
| author | sblondon <stephane.blondon@gmail.com> | 2022-12-16 16:32:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 07:32:19 -0800 |
| commit | 185edb4205a115e3d3c29ebfbc37c150699b14d3 (patch) | |
| tree | 01648b10261c07bc09759e326e714aaec7592edf | |
| parent | 16b55fd8499bf11b150dd0f96fc246a477d936cf (diff) | |
| download | dnspython-185edb4205a115e3d3c29ebfbc37c150699b14d3.tar.gz | |
Remove unsupported python case (#871)
| -rw-r--r-- | tests/test_query.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_query.py b/tests/test_query.py index 4586e32..f9b9d42 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] |
