Skip to content

Commit 52c961a

Browse files
committed
Allow to skip ED448 tests
1 parent 1063924 commit 52c961a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/test_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ async def test_connect_and_serve_with_ed25519_certificate(self):
196196
)
197197
)
198198

199+
@skipIf("ed448" in SKIP_TESTS, "Skipping ed448 tests")
199200
@asynctest
200201
async def test_connect_and_serve_with_ed448_certificate(self):
201202
await self._test_connect_and_serve_with_certificate(

tests/test_tls.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,12 @@ def test_handshake_with_ed25519_certificate(self):
584584
)
585585

586586
def test_handshake_with_ed448_certificate(self):
587-
self._test_handshake_with_certificate(
588-
*generate_ed448_certificate(common_name="example.com")
589-
)
587+
try:
588+
self._test_handshake_with_certificate(
589+
*generate_ed448_certificate(common_name="example.com")
590+
)
591+
except UnsupportedAlgorithm as exc:
592+
self.skipTest(str(exc))
590593

591594
def test_handshake_with_alpn(self):
592595
client = self.create_client(alpn_protocols=["hq-20"])

0 commit comments

Comments
 (0)