We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 130a30a commit a72c2b4Copy full SHA for a72c2b4
tests/test_02_jwk.py
@@ -681,7 +681,7 @@ def test_key_init():
681
# init with both matching (k as str) - should succeed
682
secret4 = os.urandom(16)
683
k4 = SYMKey(k=b64e(secret4).decode("utf-8"), key=secret4, alg="HS256")
684
- assert k4.k == b64e(secret4) or bytes(k4.k) == b64e(secret4)
+ assert k4.k == b64e(secret4) or bytes(k4.k, encoding="utf-8") == b64e(secret4)
685
686
687
def test_key_ops():
0 commit comments