summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-01-27 12:34:58 -0800
committerGitHub <noreply@github.com>2019-01-27 12:34:58 -0800
commit2f3afb0a2b6adaa7287173f07ea5b7fee8551083 (patch)
treef33801da68c3b64c3fd0c420a092c8dea79e7076 /tests/test_commands.py
parent5a2e26d2b0b554bfcd6875a968bcd8090b7f9b03 (diff)
parentf1f225cdb2bd13b9944049e53792662d9c24da8a (diff)
downloadredis-py-2f3afb0a2b6adaa7287173f07ea5b7fee8551083.tar.gz
Merge pull request #972 from lamby/dont-assume-64-bit-server-in-tests
Skip 64-bit specific tests. (Closes: #899)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 0c9430d..33f78d5 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -11,7 +11,8 @@ from redis._compat import (unichr, ascii_letters, iteritems, iterkeys,
from redis.client import parse_info
from redis import exceptions
-from .conftest import skip_if_server_version_lt, skip_if_server_version_gte
+from .conftest import (skip_if_server_version_lt, skip_if_server_version_gte,
+ skip_unless_arch_bits)
@pytest.fixture()
@@ -1689,6 +1690,7 @@ class TestRedisCommands(object):
assert r.geohash('barcelona', 'place1', 'place2', 'place3') ==\
['sp3e9yg3kd0', 'sp3e9cbc3t0', None]
+ @skip_unless_arch_bits(64)
@skip_if_server_version_lt('3.2.0')
def test_geopos(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
@@ -1735,6 +1737,7 @@ class TestRedisCommands(object):
assert r.georadius('barcelona', 2.191, 41.433, 1, unit='km') ==\
[b'place1']
+ @skip_unless_arch_bits(64)
@skip_if_server_version_lt('3.2.0')
def test_georadius_with(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
@@ -1792,6 +1795,7 @@ class TestRedisCommands(object):
r.georadius('barcelona', 2.191, 41.433, 1000, store='places_barcelona')
assert r.zrange('places_barcelona', 0, -1) == [b'place1']
+ @skip_unless_arch_bits(64)
@skip_if_server_version_lt('3.2.0')
def test_georadius_store_dist(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
@@ -1803,6 +1807,7 @@ class TestRedisCommands(object):
# instead of save the geo score, the distance is saved.
assert r.zscore('places_barcelona', 'place1') == 88.05060698409301
+ @skip_unless_arch_bits(64)
@skip_if_server_version_lt('3.2.0')
def test_georadiusmember(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\