Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ Housekeeping
* Add flake8 checks in CI.
* Add CPython 3.7 and PyPy 3.5 testing in CI.
* Remove package future as a dependency, not needed anymore.
* Fix warnings from py.test.
4 changes: 2 additions & 2 deletions tests/test_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def return_invalid_json(token, key, algorithms, verify=True):

jws.verify = return_invalid_json

with pytest.raises(JWTError, message='Invalid payload string: ["a", "b"}'):
with pytest.raises(JWTError, match='Invalid payload string: '):
jwt.decode(token, 'secret', ['HS256'])
finally:
jws.verify = old_jws_verify
Expand All @@ -77,7 +77,7 @@ def return_encoded_array(token, key, algorithms, verify=True):

jws.verify = return_encoded_array

with pytest.raises(JWTError, message='Invalid payload string: must be a json object'):
with pytest.raises(JWTError, match='Invalid payload string: must be a json object'):
jwt.decode(token, 'secret', ['HS256'])
finally:
jws.verify = old_jws_verify
Expand Down