11
11
from redis .client import parse_info
12
12
from redis import exceptions
13
13
14
- from .conftest import skip_if_server_version_lt , skip_if_server_version_gte
14
+ from .conftest import (skip_if_server_version_lt , skip_if_server_version_gte ,
15
+ skip_unless_arch_bits )
15
16
16
17
17
18
@pytest .fixture ()
@@ -1689,6 +1690,7 @@ def test_geohash(self, r):
1689
1690
assert r .geohash ('barcelona' , 'place1' , 'place2' , 'place3' ) == \
1690
1691
['sp3e9yg3kd0' , 'sp3e9cbc3t0' , None ]
1691
1692
1693
+ @skip_unless_arch_bits (64 )
1692
1694
@skip_if_server_version_lt ('3.2.0' )
1693
1695
def test_geopos (self , r ):
1694
1696
values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1735,6 +1737,7 @@ def test_georadius_units(self, r):
1735
1737
assert r .georadius ('barcelona' , 2.191 , 41.433 , 1 , unit = 'km' ) == \
1736
1738
[b'place1' ]
1737
1739
1740
+ @skip_unless_arch_bits (64 )
1738
1741
@skip_if_server_version_lt ('3.2.0' )
1739
1742
def test_georadius_with (self , r ):
1740
1743
values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1792,6 +1795,7 @@ def test_georadius_store(self, r):
1792
1795
r .georadius ('barcelona' , 2.191 , 41.433 , 1000 , store = 'places_barcelona' )
1793
1796
assert r .zrange ('places_barcelona' , 0 , - 1 ) == [b'place1' ]
1794
1797
1798
+ @skip_unless_arch_bits (64 )
1795
1799
@skip_if_server_version_lt ('3.2.0' )
1796
1800
def test_georadius_store_dist (self , r ):
1797
1801
values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1803,6 +1807,7 @@ def test_georadius_store_dist(self, r):
1803
1807
# instead of save the geo score, the distance is saved.
1804
1808
assert r .zscore ('places_barcelona' , 'place1' ) == 88.05060698409301
1805
1809
1810
+ @skip_unless_arch_bits (64 )
1806
1811
@skip_if_server_version_lt ('3.2.0' )
1807
1812
def test_georadiusmember (self , r ):
1808
1813
values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
0 commit comments