comments update after having tested PyMongo 3.0.1

This commit is contained in:
mrigal
2015-04-29 17:12:47 +02:00
committed by Matthieu Rigal
parent 3ab5ba6149
commit c5ed308ea5
2 changed files with 2 additions and 2 deletions

View File

@@ -513,7 +513,7 @@ class IndexesTest(unittest.TestCase):
self.assertEqual(BlogPost.objects.count(), 10)
self.assertEqual(BlogPost.objects.hint().count(), 10)
# PyMongo 3.0 bug
# PyMongo 3.0 bug only, works correctly with 2.X and 3.0.1+ versions
if pymongo.version != '3.0':
self.assertEqual(BlogPost.objects.hint([('tags', 1)]).count(), 10)