Skip to content

Commit eee810f

Browse files
authored
skip test
1 parent ab1ae94 commit eee810f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_commands.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,15 +2700,15 @@ def test_sort_all_options(self, r):
27002700
assert num == 4
27012701
assert r.lrange("sorted", 0, 10) == [b"vodka", b"milk", b"gin", b"apple juice"]
27022702

2703-
# @skip_if_server_version_lt("7.0.0") turn on after redis 7 release
2704-
def test_sort_ro(self, unstable_r):
2705-
unstable_r["score:1"] = 8
2706-
unstable_r["score:2"] = 3
2707-
unstable_r["score:3"] = 5
2708-
unstable_r.rpush("a", "3", "2", "1")
2709-
assert unstable_r.sort_ro("a", by="score:*") == [b"2", b"3", b"1"]
2710-
unstable_r.rpush("b", "2", "3", "1")
2711-
assert unstable_r.sort_ro("b", desc=True) == [b"3", b"2", b"1"]
2703+
@skip_if_server_version_lt("7.0.0")
2704+
def test_sort_ro(self, r):
2705+
r["score:1"] = 8
2706+
r["score:2"] = 3
2707+
r["score:3"] = 5
2708+
r.rpush("a", "3", "2", "1")
2709+
assert r.sort_ro("a", by="score:*") == [b"2", b"3", b"1"]
2710+
r.rpush("b", "2", "3", "1")
2711+
assert r.sort_ro("b", desc=True) == [b"3", b"2", b"1"]
27122712

27132713
def test_sort_issue_924(self, r):
27142714
# Tests for issue https://github.com/andymccurdy/redis-py/issues/924

0 commit comments

Comments
 (0)