Permalink
Browse files

Skip test_max_time_ms_getmore on servers before 2.5.3.

  • Loading branch information...
1 parent d0fca05 commit 47a851fe502526d67a9e696a2fdf3dade071e473 @ajdavis ajdavis committed Mar 6, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/test_cursor.py
View
@@ -101,6 +101,9 @@ def test_max_time_ms_getmore(self):
if "enableTestCommands=1" not in get_command_line(self.client)["argv"]:
raise SkipTest("Need test commands enabled")
+ if not version.at_least(self.db.connection, (2, 5, 3, -1)):
+ raise SkipTest("MaxTimeMS requires MongoDB >= 2.5.3")
+
coll = self.db.pymongo_test
coll.insert({} for _ in range(200))
cursor = coll.find().max_time_ms(100)

0 comments on commit 47a851f

Please sign in to comment.