Skip to content

Commit 4ffeed6

Browse files
committed
Add OPENSSL_SUPPORTED_CURVES
1 parent 52b8477 commit 4ffeed6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ecdsa/test_pyecdsa.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,11 @@ def do_test_to_openssl(self, curve, hash_name="SHA1"):
12041204

12051205

12061206
class TooSmallCurve(unittest.TestCase):
1207+
OPENSSL_SUPPORTED_CURVES = set(
1208+
c.split(":")[0].strip()
1209+
for c in run_openssl("ecparam -list_curves").split("\n")
1210+
)
1211+
12071212
@pytest.mark.skipif("prime192v1" not in OPENSSL_SUPPORTED_CURVES,
12081213
reason="system openssl does not support prime192v1")
12091214
def test_sign_too_small_curve_dont_allow_truncate_raises(self):

0 commit comments

Comments
 (0)