Projet

Général

Profil

0001-python3-pick-url-b64-decoding-exception-in-oidc-auth.patch

Paul Marillonnet, 06 mars 2019 21:52

Télécharger (949 octets)

Voir les différences:

Subject: [PATCH] python3: pick url b64-decoding exception in oidc authn tests
 (#31180)

 tests/test_auth_oidc.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
tests/test_auth_oidc.py
4 4
import urlparse
5 5
import json
6 6
import time
7
import six
7 8

  
8 9
from jwcrypto.jwk import JWKSet, JWK
9 10
from jwcrypto.jwt import JWT
......
29 30

  
30 31

  
31 32
def test_base64url_decode():
32
    with pytest.raises(TypeError):
33
    if six.PY2:
34
        Error = TypeError
35
    else:
36
        from binascii import Error
37
    with pytest.raises(Error):
33 38
        base64url_decode('x')
34 39
    base64url_decode('aa')
35 40

  
36
-