@@ -2744,7 +2744,7 @@ def test_georadius_with(self, r):
2744
2744
assert r .georadius ('barcelona' , 2 , 1 , 1 , unit = 'km' ,
2745
2745
withdist = True , withcoord = True , withhash = True ) == []
2746
2746
2747
- @skip_if_server_version_lt ('3 .2.0' )
2747
+ @skip_if_server_version_lt ('6 .2.0' )
2748
2748
def test_georadius_count (self , r ):
2749
2749
values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
2750
2750
(2.1873744593677 , 41.406342043777 , 'place2' )
@@ -2806,6 +2806,12 @@ def test_georadiusmember(self, r):
2806
2806
(2.187376320362091 , 41.40634178640635 )],
2807
2807
[b'place1' , 0.0 , 3471609698139488 ,
2808
2808
(2.1909382939338684 , 41.433790281840835 )]]
2809
+
2810
+ @skip_if_server_version_lt ('6.2.0' )
2811
+ def test_georadiusmember_count (self , r ):
2812
+ values = (2.1909389952632 , 41.433791470673 , 'place1' ) + \
2813
+ (2.1873744593677 , 41.406342043777 , b'\x80 place2' )
2814
+ r .geoadd ('barcelona' , values )
2809
2815
assert r .georadiusbymember ('barcelona' , 'place1' , 4000 ,
2810
2816
count = 1 , any = True ) == \
2811
2817
[b'\x80 place2' ]
0 commit comments