python-redis/redis-skip-rounding.patch

41 lines
1.8 KiB
Diff
Raw Normal View History

Index: redis-2.10.6/tests/test_commands.py
===================================================================
--- redis-2.10.6.orig/tests/test_commands.py
+++ redis-2.10.6/tests/test_commands.py
@@ -1450,7 +1450,7 @@ class TestRedisCommands(object):
assert r.geohash('barcelona', 'place1', 'place2') ==\
['sp3e9yg3kd0', 'sp3e9cbc3t0']
- @skip_if_server_version_lt('3.2.0')
+ @pytest.mark.skip()
def test_geopos(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
(2.1873744593677, 41.406342043777, 'place2')
@@ -1495,7 +1495,7 @@ class TestRedisCommands(object):
assert r.georadius('barcelona', 2.191, 41.433, 1, unit='km') ==\
['place1']
- @skip_if_server_version_lt('3.2.0')
+ @pytest.mark.skip()
def test_georadius_with(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
(2.1873744593677, 41.406342043777, 'place2')
@@ -1552,7 +1552,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_if_server_version_lt('3.2.0')
+ @pytest.mark.skip()
def test_georadius_store_dist(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
(2.1873744593677, 41.406342043777, 'place2')
@@ -1563,7 +1563,7 @@ class TestRedisCommands(object):
# instead of save the geo score, the distance is saved.
assert r.zscore('places_barcelona', 'place1') == 88.05060698409301
- @skip_if_server_version_lt('3.2.0')
+ @pytest.mark.skip()
def test_georadiusmember(self, r):
values = (2.1909389952632, 41.433791470673, 'place1') +\
(2.1873744593677, 41.406342043777, 'place2')