Skip to content

Commit 02eda54

Browse files
authored
Remove a bunch of tests for contents that haven't existed in years (#1401)
1 parent df30b78 commit 02eda54

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/test_ssl.py

-19
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,6 @@
125125
_make_requires,
126126
)
127127

128-
try:
129-
from OpenSSL.SSL import (
130-
SSL_ST_BEFORE,
131-
SSL_ST_INIT,
132-
SSL_ST_OK,
133-
SSL_ST_RENEGOTIATE,
134-
)
135-
except ImportError:
136-
SSL_ST_INIT = SSL_ST_BEFORE = SSL_ST_OK = SSL_ST_RENEGOTIATE = None
137-
138128
from .test_crypto import (
139129
client_cert_pem,
140130
client_key_pem,
@@ -4093,15 +4083,6 @@ def test_integers(self) -> None:
40934083
]:
40944084
assert isinstance(const, int)
40954085

4096-
# These constants don't exist on OpenSSL 1.1.0
4097-
for const in [
4098-
SSL_ST_INIT,
4099-
SSL_ST_BEFORE,
4100-
SSL_ST_OK,
4101-
SSL_ST_RENEGOTIATE,
4102-
]:
4103-
assert const is None or isinstance(const, int)
4104-
41054086

41064087
class TestRequires:
41074088
"""

0 commit comments

Comments
 (0)