diff --git a/test_fakeredis.py b/test_fakeredis.py index 6ab7d38..ba757bd 100644 --- a/test_fakeredis.py +++ b/test_fakeredis.py @@ -158,7 +158,7 @@ def test_future_newbytes(self): def test_future_newstr(self): str = pytest.importorskip('builtins', reason='future.types not available').str - self.redis.set('Ñandu', 'foo') + self.redis.set(str('Ñandu'), 'foo') self.assertEqual(self.redis.get('Ñandu'), b'foo') def test_get_does_not_exist(self):