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 ()
@@ -1630,6 +1631,7 @@ def test_geohash(self, r):
16301631 assert r .geohash ('barcelona' , 'place1' , 'place2' ) == \
16311632 ['sp3e9yg3kd0' , 'sp3e9cbc3t0' ]
16321633
1634+ @skip_unless_arch_bits (64 )
16331635 @skip_if_server_version_lt ('3.2.0' )
16341636 def test_geopos (self , r ):
16351637 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1675,6 +1677,7 @@ def test_georadius_units(self, r):
16751677 assert r .georadius ('barcelona' , 2.191 , 41.433 , 1 , unit = 'km' ) == \
16761678 ['place1' ]
16771679
1680+ @skip_unless_arch_bits (64 )
16781681 @skip_if_server_version_lt ('3.2.0' )
16791682 def test_georadius_with (self , r ):
16801683 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1732,6 +1735,7 @@ def test_georadius_store(self, r):
17321735 r .georadius ('barcelona' , 2.191 , 41.433 , 1000 , store = 'places_barcelona' )
17331736 assert r .zrange ('places_barcelona' , 0 , - 1 ) == [b'place1' ]
17341737
1738+ @skip_unless_arch_bits (64 )
17351739 @skip_if_server_version_lt ('3.2.0' )
17361740 def test_georadius_store_dist (self , r ):
17371741 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
@@ -1743,6 +1747,7 @@ def test_georadius_store_dist(self, r):
17431747 # instead of save the geo score, the distance is saved.
17441748 assert r .zscore ('places_barcelona' , 'place1' ) == 88.05060698409301
17451749
1750+ @skip_unless_arch_bits (64 )
17461751 @skip_if_server_version_lt ('3.2.0' )
17471752 def test_georadiusmember (self , r ):
17481753 values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
0 commit comments