commit | 81477855ae3de643b8138d646c55b198c4fecedd | [log] [tgz] |
---|---|---|
author | Felix Yan <felixonmars@archlinux.org> | Wed Aug 01 06:37:20 2018 +0800 |
committer | Thea Flowers <theaflowers@google.com> | Tue Jul 31 15:37:20 2018 -0700 |
tree | 39297c227dc809e2b7b87559a80c3c91d6caf99e | |
parent | b7eb1a78b87bbf69ced51d8e8a9febcc1c1590cc [diff] [blame] |
Fix check for error text on Python 3.7 (#278)
diff --git a/tests/test_jwt.py b/tests/test_jwt.py index 22c5bc5..4a64717 100644 --- a/tests/test_jwt.py +++ b/tests/test_jwt.py
@@ -118,7 +118,7 @@ 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():