diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-05-31 15:47:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 15:47:24 +0300 |
commit | 04bc576679e9fedb24a0548521d80fe81c91e2ec (patch) | |
tree | 6f1aec5c276393ac1917e372ac39858e9a48b3d5 /tests/test_scripting.py | |
parent | 4a73d85c78ce0ca36e5100b7ee0047b773cec23f (diff) | |
download | redis-py-04bc576679e9fedb24a0548521d80fe81c91e2ec.tar.gz |
Fix tests for Redis 7 (#2182)
* fix tests
* async
Diffstat (limited to 'tests/test_scripting.py')
-rw-r--r-- | tests/test_scripting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_scripting.py b/tests/test_scripting.py index 1ccd99a..bbe845c 100644 --- a/tests/test_scripting.py +++ b/tests/test_scripting.py @@ -70,7 +70,7 @@ class TestScripting: @pytest.mark.onlynoncluster def test_eval_ro(self, r): r.set("a", "b") - assert r.eval_ro("return redis.call('GET', KEYS[1])", 1, "a") == "b" + assert r.eval_ro("return redis.call('GET', KEYS[1])", 1, "a") == b"b" with pytest.raises(redis.ResponseError): r.eval_ro("return redis.call('DEL', KEYS[1])", 1, "a") @@ -162,7 +162,7 @@ class TestScripting: r.set("a", "b") get_sha = r.script_load("return redis.call('GET', KEYS[1])") del_sha = r.script_load("return redis.call('DEL', KEYS[1])") - assert r.evalsha_ro(get_sha, 1, "a") == "b" + assert r.evalsha_ro(get_sha, 1, "a") == b"b" with pytest.raises(redis.ResponseError): r.evalsha_ro(del_sha, 1, "a") |