Skip to content

Commit 6b9a4ae

Browse files
committed
Fix test_encode_decode_with_ecdsa_sha384 so that it actually uses the key its trying to use when using a SSH public key as a string argument to decode()
1 parent 10485f7 commit 6b9a4ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_jwt.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from __future__ import unicode_literals
22

3+
import json
4+
import sys
5+
import time
6+
37
from calendar import timegm
48
from datetime import datetime
59
from decimal import Decimal
610

7-
import sys
8-
import time
9-
import json
10-
1111
import jwt
1212

1313
if sys.version_info >= (2, 7):
@@ -630,7 +630,7 @@ def test_encode_decode_with_ecdsa_sha384(self):
630630
algorithm='ES384')
631631

632632
with open('tests/testkey_ec.pub', 'r') as ec_pub_file:
633-
pub_rsakey = ec_pub_file.read()
633+
pub_eckey = ec_pub_file.read()
634634
assert jwt.decode(jwt_message, pub_eckey)
635635

636636
load_output = jwt.load(jwt_message)

0 commit comments

Comments
 (0)