Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow error text of Python 3.7 #278

Merged
merged 1 commit into from
Jul 31, 2018
Merged

Conversation

felixonmars
Copy link
Contributor

@felixonmars felixonmars commented Jul 12, 2018

Fixes the following test failure under Python 3.7:

=================================== FAILURES ===================================
_______________________ test_decode_bad_token_not_base64 _______________________

    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')
E       AssertionError: Pattern 'Incorrect padding' not found in 'Invalid base64-encoded string: length cannot be 1 more than a multiple of 4'

tests/test_jwt.py:121: AssertionError
======== 1 failed, 280 passed, 4 skipped, 1 deselected in 21.03 seconds ========

@theacodes
Copy link
Contributor

Thanks, @felixonmars!

@theacodes theacodes merged commit 8147785 into googleapis:master Jul 31, 2018
@felixonmars felixonmars deleted the patch-1 branch August 6, 2018 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants