Skip to content

Commit 576a164

Browse files
author
Rebecka Gulliksson
committed
Make sure input to io.StringIO is unicode.
1 parent 6f8068f commit 576a164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_3_jws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def test_verify_protected_headers():
455455
signature=sig,
456456
)
457457
])
458-
stream = io.StringIO(json.dumps(data))
458+
stream = io.StringIO(json.dumps(data, ensure_ascii=False))
459459
_jws = JWS()
460460
assert _jws.verify_json(stream) == payload
461461

0 commit comments

Comments
 (0)