8000 Skip tests if the curves are not supported by OpenSSL · tlsfuzzer/python-ecdsa@b758369 · GitHub
[go: up one dir, main page]

Skip to content

Commit b758369

Browse files
committed
Skip tests if the curves are not supported by OpenSSL
1 parent 8b4309d commit b758369

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ecdsa/test_pyecdsa.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,9 @@ def do_test_from_openssl(self, curve):
820820
curvename = curve.openssl_name
821821
assert curve 69BD name
822822

823-
if curvename not in OpenSSL.supported_curves:
824-
return
823+
if curvename not in self.supported_curves:
824+
raise unittest.SkipTest(
825+
"Curve %s is not by the OpenSSL on the system" % curvename)
825826

826827
# OpenSSL: create sk, vk, sign.
827828
# Python: read vk(3), checksig(5), read sk(1), sign, check

0 commit comments

Comments
 (0)
0