Skip to content

Commit cc26d74

Browse files
committed
test_pyecdsa: make coverage realistic
we want to test both with and without openssl command present
1 parent 27db17c commit cc26d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecdsa/test_pyecdsa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,12 +1359,12 @@ def do_test_to_openssl(self, curve, hash_name="SHA1"):
13591359
OPENSSL_SUPPORTED_TYPES = set()
13601360
try:
13611361
if "-rawin" in run_openssl("pkeyutl -help"):
1362-
OPENSSL_SUPPORTED_TYPES = set(
1362+
OPENSSL_SUPPORTED_TYPES = set( # pragma: no branch
13631363
c.lower()
13641364
for c in ("ED25519", "ED448")
13651365
if c in run_openssl("list -public-key-methods")
13661366
)
1367-
except SubprocessError:
1367+
except SubprocessError: # pragma: no cover
13681368
pass
13691369

13701370
def do_eddsa_test_to_openssl(self, curve):

0 commit comments

Comments
 (0)