Skip to content

Commit 8147785

Browse files
felixonmarstheacodes
authored andcommitted
Fix check for error text on Python 3.7 (#278)
1 parent b7eb1a7 commit 8147785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_decode_bad_token_wrong_number_of_segments():
118118
def test_decode_bad_token_not_base64():
119119
with pytest.raises((ValueError, TypeError)) as excinfo:
120120
jwt.decode('1.2.3', PUBLIC_CERT_BYTES)
121-
assert excinfo.match(r'Incorrect padding')
121+
assert excinfo.match(r'Incorrect padding|more than a multiple of 4')
122122

123123

124124
def test_decode_bad_token_not_json():

0 commit comments

Comments
 (0)