File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
import pytest
3
3
4
4
from redis import exceptions
5
+ from redis ._compat import b
5
6
6
7
7
8
multiply_script = """
@@ -65,7 +66,7 @@ def test_script_object_in_pipeline(self, r):
65
66
assert multiply .sha
66
67
assert r .script_exists (multiply .sha ) == [True ]
67
68
# [SET worked, GET 'a', result of multiple script]
68
- assert pipe .execute () == [True , '2' , 6 ]
69
+ assert pipe .execute () == [True , b ( '2' ) , 6 ]
69
70
70
71
# purge the script from redis's cache and re-run the pipeline
71
72
# the multiply script object knows it's sha, so it shouldn't get
@@ -78,4 +79,4 @@ def test_script_object_in_pipeline(self, r):
78
79
multiply (keys = ['a' ], args = [3 ], client = pipe )
79
80
assert r .script_exists (multiply .sha ) == [False ]
80
81
# [SET worked, GET 'a', result of multiple script]
81
- assert pipe .execute () == [True , '2' , 6 ]
82
+ assert pipe .execute () == [True , b ( '2' ) , 6 ]
You can’t perform that action at this time.
0 commit comments