diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-22 10:15:14 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-22 10:15:14 -0800 |
commit | 56bcade581e68ad0dd82dbabe97c75a9f0701fed (patch) | |
tree | cb8f7d62d360122bef3928dc517ba54a2e9f94d0 | |
parent | 1d2901cae193cb965480835aaf96696f8eecfaab (diff) | |
download | cryptography-56bcade581e68ad0dd82dbabe97c75a9f0701fed.tar.gz cryptography-56bcade581e68ad0dd82dbabe97c75a9f0701fed.tar.bz2 cryptography-56bcade581e68ad0dd82dbabe97c75a9f0701fed.zip |
fix, technically
-rw-r--r-- | tests/test_fernet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_fernet.py b/tests/test_fernet.py index c1caaa05..8759229a 100644 --- a/tests/test_fernet.py +++ b/tests/test_fernet.py @@ -68,7 +68,7 @@ class TestFernet(object): f.decrypt(token.encode("ascii"), ttl=ttl_sec) def test_unicode(self): - f = Fernet(base64.b64encode(b"\x00" * 32)) + f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32)) with pytest.raises(TypeError): f.encrypt(six.u("")) with pytest.raises(TypeError): |