Skip to content

Commit 5ce6d44

Browse files
committed
Merge pull request #50 from mark-adams/fix_tests_when_deps_missing
Fixed tests so that they will still run without failure when dependencies (PyCrypto, ecdsa) are missing
2 parents cd32cf2 + 6528444 commit 5ce6d44

File tree

3 files changed

+138
-148
lines changed

3 files changed

+138
-148
lines changed

jwt/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ def prepare_RS_key(key):
119119

120120
try:
121121
import ecdsa
122-
from Crypto.Hash import SHA256
123-
from Crypto.Hash import SHA384
124-
from Crypto.Hash import SHA512
125122

126123
signing_methods.update({
127124
'ES256': lambda msg, key: key.sign(msg, hashfunc=hashlib.sha256, sigencode=ecdsa.util.sigencode_der),

0 commit comments

Comments
 (0)