Skip to content

Commit 3ef05cd

Browse files
committed
Import json at the top of the module
1 parent eed086d commit 3ef05cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/algorithms/test_EC.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12

23
from jose.constants import ALGORITHMS
34
from jose.exceptions import JOSEError, JWKError
@@ -195,7 +196,6 @@ def assert_parameters(self, as_dict, private):
195196
assert 'd' not in as_dict
196197

197198
# as_dict should be serializable to JSON
198-
import json
199199
json.dumps(as_dict)
200200

201201
def test_to_dict(self):

tests/algorithms/test_HMAC.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12

23
from jose.constants import ALGORITHMS
34
from jose.exceptions import JOSEError
@@ -45,5 +46,4 @@ def test_to_dict(self):
4546
assert as_dict['k'] == encoded
4647

4748
# as_dict should be serializable to JSON
48-
import json
4949
json.dumps(as_dict)

tests/algorithms/test_RSA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import base64
2+
import json
23
import sys
34

45
try:
@@ -371,7 +372,6 @@ def assert_parameters(self, as_dict, private):
371372
assert 'qi' not in as_dict
372373

373374
# as_dict should be serializable to JSON
374-
import json
375375
json.dumps(as_dict)
376376

377377
def assert_roundtrip(self, key):

0 commit comments

Comments
 (0)