Skip to content

Commit

Permalink
Allow to skip ED448 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
catap committed Jul 8, 2024
1 parent 8a06e86 commit bed77cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ async def test_connect_and_serve_with_ed25519_certificate(self):
)
)

@skipIf("ed448" in SKIP_TESTS, "Skipping ed448 tests")
@asynctest
async def test_connect_and_serve_with_ed448_certificate(self):
await self._test_connect_and_serve_with_certificate(
Expand Down
9 changes: 6 additions & 3 deletions tests/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,12 @@ def test_handshake_with_ed25519_certificate(self):
)

def test_handshake_with_ed448_certificate(self):
self._test_handshake_with_certificate(
*generate_ed448_certificate(common_name="example.com")
)
try:
self._test_handshake_with_certificate(
*generate_ed448_certificate(common_name="example.com")
)
except UnsupportedAlgorithm as exc:
self.skipTest(str(exc))

def test_handshake_with_alpn(self):
client = self.create_client(alpn_protocols=["hq-interop"])
Expand Down

0 comments on commit bed77cd

Please sign in to comment.