Skip to content

Commit

Permalink
Fix check for error text on Python 3.7 (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars authored and theacodes committed Jul 31, 2018
1 parent b7eb1a7 commit 8147785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_decode_bad_token_wrong_number_of_segments():
def test_decode_bad_token_not_base64():
with pytest.raises((ValueError, TypeError)) as excinfo:
jwt.decode('1.2.3', PUBLIC_CERT_BYTES)
assert excinfo.match(r'Incorrect padding')
assert excinfo.match(r'Incorrect padding|more than a multiple of 4')


def test_decode_bad_token_not_json():
Expand Down

0 comments on commit 8147785

Please sign in to comment.