From 81477855ae3de643b8138d646c55b198c4fecedd Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 1 Aug 2018 06:37:20 +0800 Subject: [PATCH] Fix check for error text on Python 3.7 (#278) --- tests/test_jwt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_jwt.py b/tests/test_jwt.py index 22c5bc538..4a64717ff 100644 --- a/tests/test_jwt.py +++ b/tests/test_jwt.py @@ -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():