Skip to content

Commit a14fe7b

Browse files
committed
Add temporary hack to skip DTLS test on old cryptography versions
1 parent 0ca802d commit a14fe7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_ssl.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4225,6 +4225,11 @@ def client_callback(*args): # pragma: nocover
42254225
handshake_in_memory(client, server)
42264226

42274227

4228+
# XX remove this skipif before merging
4229+
@pytest.mark.skipif(
4230+
not hasattr(SSL._lib, "DTLSv1_listen"),
4231+
reason="need newer cryptography",
4232+
)
42284233
class TestDTLS(object):
42294234
def test_it_works_at_all(self):
42304235
s_ctx = Context(DTLS_METHOD)

0 commit comments

Comments
 (0)