Skip to content

Restore zrange functionality for older versions of Redis #1670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove REV from zrange test (avalible only from version 6.2)
  • Loading branch information
AvitalFineRedis committed Nov 8, 2021
commit 9350f6a5c0e3a79f1090a68d12b0d33649d12d09
2 changes: 1 addition & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,7 @@ def test_zrange(self, r):
r.zadd('a', {'a1': 1, 'a2': 2, 'a3': 3})
assert r.zrange('a', 0, 1) == [b'a1', b'a2']
assert r.zrange('a', 1, 2) == [b'a2', b'a3']
assert r.zrange('a', 0, 2, desc=True) == [b'a3', b'a2', b'a1']
assert r.zrange('a', 0, 2) == [b'a1', b'a2', b'a3']

# withscores
assert r.zrange('a', 0, 1, withscores=True) == \
Expand Down