Skip to content

Commit 007aa6b

Browse files
committed
PYTHON-1491 Skip OP_KILL_CURSORS on old 3.6 versions
1 parent ea8941e commit 007aa6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_legacy_api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,13 @@ def raises_cursor_not_found():
13791379
wait_until(raises_cursor_not_found, 'close cursor')
13801380

13811381
def test_kill_cursors_with_tuple(self):
1382+
# Some evergreen distros (Debian 7.1) still test against 3.6.5 where
1383+
# OP_KILL_CURSORS does not work.
1384+
if (client_context.is_mongos and client_context.auth_enabled and
1385+
(3, 6, 0) <= client_context.version < (3, 6, 6)):
1386+
raise SkipTest("SERVER-33553 This server version does not support "
1387+
"OP_KILL_CURSORS")
1388+
13821389
coll = self.client.pymongo_test.test
13831390
coll.drop()
13841391

0 commit comments

Comments
 (0)