Skip to content

Commit 3ada747

Browse files
authored
Remove fallback for antique OpenSSL without TLS 1.2 (#1343)
1 parent 15ab815 commit 3ada747

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/test_ssl.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -598,19 +598,10 @@ def test_method(self):
598598
`SSLv3_METHOD`, `SSLv23_METHOD`, `TLSv1_METHOD`, `TLSv1_1_METHOD`,
599599
or `TLSv1_2_METHOD`.
600600
"""
601-
methods = [SSLv23_METHOD, TLSv1_METHOD]
601+
methods = [SSLv23_METHOD, TLSv1_METHOD, TLSv1_1_METHOD, TLSv1_2_METHOD]
602602
for meth in methods:
603603
Context(meth)
604604

605-
maybe = [TLSv1_1_METHOD, TLSv1_2_METHOD]
606-
for meth in maybe:
607-
try:
608-
Context(meth)
609-
except (Error, ValueError):
610-
# Some versions of OpenSSL have SSLv2 / TLSv1.1 / TLSv1.2, some
611-
# don't. Difficult to say in advance.
612-
pass
613-
614605
with pytest.raises(TypeError):
615606
Context("")
616607
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)