diff options
author | Danny Hermes <daniel.j.hermes@gmail.com> | 2015-08-14 08:46:19 -0700 |
---|---|---|
committer | Danny Hermes <daniel.j.hermes@gmail.com> | 2015-08-14 08:46:19 -0700 |
commit | 5c570a8e7fce8d0b79b20d7f4bee8045ff7fc47c (patch) | |
tree | 162374118eedcf4b43e47956ff79a97936a15739 /tests/test_jwt.py | |
parent | 597ccd788718d353fb610b99ae03fafb834fb502 (diff) | |
download | oauth2client-5c570a8e7fce8d0b79b20d7f4bee8045ff7fc47c.tar.gz |
Unifying all conversions to bytes.
Also making sure the _urlsafe_b64encode returns bytes
and updating dependent code with the change in
return type.
Diffstat (limited to 'tests/test_jwt.py')
-rw-r--r-- | tests/test_jwt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_jwt.py b/tests/test_jwt.py index 5f2cc90..5dd594f 100644 --- a/tests/test_jwt.py +++ b/tests/test_jwt.py @@ -147,7 +147,7 @@ class CryptTests(unittest.TestCase): self._check_jwt_failure('foo.bar.baz', 'Can\'t parse token') # Bad signature - jwt = 'foo.%s.baz' % crypt._urlsafe_b64encode('{"a":"b"}') + jwt = b'.'.join([b'foo', crypt._urlsafe_b64encode('{"a":"b"}'), b'baz']) self._check_jwt_failure(jwt, 'Invalid token signature') # No expiration |