Skip to content

Commit 98205b8

Browse files
authored
PYTHON-2421 Stop testing geoSearch/geoHaystack on MongoDB 4.5+ (#512)
1 parent c92e552 commit 98205b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_collection.py

+2
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ def test_index_geo2d(self):
450450
index_info = db.test.index_information()['loc_2d']
451451
self.assertEqual([('loc', '2d')], index_info['key'])
452452

453+
# geoSearch was deprecated in 4.4 and removed in 5.0
454+
@client_context.require_version_max(4, 5)
453455
@client_context.require_no_mongos
454456
def test_index_haystack(self):
455457
db = self.db

0 commit comments

Comments
 (0)