aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_fernet.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_fernet.py')
-rw-r--r--tests/test_fernet.py2
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):