Skip to content

Commit

Permalink
Add temporary hack to skip DTLS test on old cryptography versions
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Oct 4, 2021
1 parent e4a64de commit 82e6a90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4255,6 +4255,11 @@ def client_callback(*args): # pragma: nocover
handshake_in_memory(client, server)


# XX remove this skipif before merging
@pytest.mark.skipif(
not hasattr(SSL._lib, "DTLSv1_listen"),
reason="need newer cryptography",
)
class TestDTLS(object):
def test_it_works_at_all(self):
s_ctx = Context(DTLS_METHOD)
Expand Down

0 comments on commit 82e6a90

Please sign in to comment.