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 23, 2024
1 parent 8a06e86 commit dee67d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
4 changes: 3 additions & 1 deletion tests/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import ssl
from functools import partial
from unittest import TestCase
from unittest import TestCase, skipIf
from unittest.mock import patch

from aioquic import tls
Expand Down Expand Up @@ -49,6 +49,7 @@
SERVER_CACERTFILE,
SERVER_CERTFILE,
SERVER_KEYFILE,
SKIP_TESTS,
generate_ec_certificate,
generate_ed448_certificate,
generate_ed25519_certificate,
Expand Down Expand Up @@ -583,6 +584,7 @@ def test_handshake_with_ed25519_certificate(self):
*generate_ed25519_certificate(common_name="example.com")
)

@skipIf("ed448" in SKIP_TESTS, "Skipping ed448 tests")
def test_handshake_with_ed448_certificate(self):
self._test_handshake_with_certificate(
*generate_ed448_certificate(common_name="example.com")
Expand Down

0 comments on commit dee67d2

Please sign in to comment.