1111from redis .client import parse_info
1212from redis import exceptions
1313
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 )
1516
1617
1718@pytest .fixture ()
@@ -1689,6 +1690,7 @@ def test_geohash(self, r):
16891690 assert r .geohash ('barcelona' , 'place1' , 'place2' , 'place3' ) == \
16901691 ['sp3e9yg3kd0' , 'sp3e9cbc3t0' , None ]
16911692
1693+ @skip_unless_arch_bits (64 )
16921694 @skip_if_server_version_lt ('3.2.0' )
16931695 def test_geopos (self , r ):
16941696 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1735,6 +1737,7 @@ def test_georadius_units(self, r):
17351737 assert r .georadius ('barcelona' , 2.191 , 41.433 , 1 , unit = 'km' ) == \
17361738 [b'place1' ]
17371739
1740+ @skip_unless_arch_bits (64 )
17381741 @skip_if_server_version_lt ('3.2.0' )
17391742 def test_georadius_with (self , r ):
17401743 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1792,6 +1795,7 @@ def test_georadius_store(self, r):
17921795 r .georadius ('barcelona' , 2.191 , 41.433 , 1000 , store = 'places_barcelona' )
17931796 assert r .zrange ('places_barcelona' , 0 , - 1 ) == [b'place1' ]
17941797
1798+ @skip_unless_arch_bits (64 )
17951799 @skip_if_server_version_lt ('3.2.0' )
17961800 def test_georadius_store_dist (self , r ):
17971801 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1803,6 +1807,7 @@ def test_georadius_store_dist(self, r):
18031807 # instead of save the geo score, the distance is saved.
18041808 assert r .zscore ('places_barcelona' , 'place1' ) == 88.05060698409301
18051809
1810+ @skip_unless_arch_bits (64 )
18061811 @skip_if_server_version_lt ('3.2.0' )
18071812 def test_georadiusmember (self , r ):
18081813 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
0 commit comments