summaryrefslogtreecommitdiff
path: root/tests/test_scripting.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-02 06:30:07 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-03 03:21:49 -0700
commit5089cc275e6077a070017587001c22e490995d47 (patch)
treeeb8e52047d04f36f1a9562fa47e0a853ffab79eb /tests/test_scripting.py
parent7a0e4c7f99463c79b456a48837b5687072e1485d (diff)
downloadredis-py-5089cc275e6077a070017587001c22e490995d47.tar.gz
Use unicode literals throughout project
Remove workaround for handling unicode with older Pythons.
Diffstat (limited to 'tests/test_scripting.py')
-rw-r--r--tests/test_scripting.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_scripting.py b/tests/test_scripting.py
index 7ee468f..b3d52a5 100644
--- a/tests/test_scripting.py
+++ b/tests/test_scripting.py
@@ -1,7 +1,7 @@
+from __future__ import unicode_literals
import pytest
from redis import exceptions
-from redis._compat import b
multiply_script = """
@@ -78,7 +78,7 @@ class TestScripting(object):
multiply(keys=['a'], args=[3], client=pipe)
assert r.script_exists(multiply.sha) == [False]
# [SET worked, GET 'a', result of multiple script]
- assert pipe.execute() == [True, b('2'), 6]
+ assert pipe.execute() == [True, b'2', 6]
# The script should have been loaded by pipe.execute()
assert r.script_exists(multiply.sha) == [True]
# The precalculated sha should have been the correct one
@@ -93,7 +93,7 @@ class TestScripting(object):
multiply(keys=['a'], args=[3], client=pipe)
assert r.script_exists(multiply.sha) == [False]
# [SET worked, GET 'a', result of multiple script]
- assert pipe.execute() == [True, b('2'), 6]
+ assert pipe.execute() == [True, b'2', 6]
assert r.script_exists(multiply.sha) == [True]
def test_eval_msgpack_pipeline_error_in_lua(self, r):