We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7eb1a7 commit 8147785Copy full SHA for 8147785
tests/test_jwt.py
@@ -118,7 +118,7 @@ def test_decode_bad_token_wrong_number_of_segments():
118
def test_decode_bad_token_not_base64():
119
with pytest.raises((ValueError, TypeError)) as excinfo:
120
jwt.decode('1.2.3', PUBLIC_CERT_BYTES)
121
- assert excinfo.match(r'Incorrect padding')
+ assert excinfo.match(r'Incorrect padding|more than a multiple of 4')
122
123
124
def test_decode_bad_token_not_json():
0 commit comments