Skip to content

Commit 21f56d2

Browse files
catapjlaine
authored andcommitted
Allow to skip ED448 tests
1 parent 3441f87 commit 21f56d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import datetime
33
import ssl
44
from functools import partial
5-
from unittest import TestCase
5+
from unittest import TestCase, skipIf
66
from unittest.mock import patch
77

88
from aioquic import tls
@@ -49,6 +49,7 @@
4949
SERVER_CACERTFILE,
5050
SERVER_CERTFILE,
5151
SERVER_KEYFILE,
52+
SKIP_TESTS,
5253
generate_ec_certificate,
5354
generate_ed448_certificate,
5455
generate_ed25519_certificate,
@@ -583,6 +584,7 @@ def test_handshake_with_ed25519_certificate(self):
583584
*generate_ed25519_certificate(common_name="example.com")
584585
)
585586

587+
@skipIf("ed448" in SKIP_TESTS, "Skipping ed448 tests")
586588
def test_handshake_with_ed448_certificate(self):
587589
self._test_handshake_with_certificate(
588590
*generate_ed448_certificate(common_name="example.com")

0 commit comments

Comments
 (0)