There was an error while loading. Please reload this page.
1 parent 63c8fd3 commit e873e27Copy full SHA for e873e27
test/test_cursor.py
@@ -765,8 +765,12 @@ def test_count_with_hint(self):
765
self.assertEqual(
766
1, collection.find({'i': 1}).hint([("x", 1)]).count())
767
768
- self.assertEqual(2, collection.find().hint("x_1").count())
769
- self.assertEqual(2, collection.find().hint([("x", 1)]).count())
+ if client_context.version.at_least(3, 3, 2):
+ self.assertEqual(0, collection.find().hint("x_1").count())
770
+ self.assertEqual(0, collection.find().hint([("x", 1)]).count())
771
+ else:
772
+ self.assertEqual(2, collection.find().hint("x_1").count())
773
+ self.assertEqual(2, collection.find().hint([("x", 1)]).count())
774
775
def test_where(self):
776
db = self.db
0 commit comments