From a3fe8bc106095280f4be49720f7420dd6aa3bdf1 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Tue, 16 Apr 2019 14:33:21 -0700 Subject: [PATCH] PYTHON-1491 Skip OP_KILL_CURSORS on old 3.6 versions (cherry picked from commit 007aa6ba50c341569a91a56c973bd52f6818241b) --- test/test_legacy_api.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_legacy_api.py b/test/test_legacy_api.py index bd709cfa8..01c4d4ae0 100644 --- a/test/test_legacy_api.py +++ b/test/test_legacy_api.py @@ -1379,6 +1379,13 @@ class TestLegacy(IntegrationTest): wait_until(raises_cursor_not_found, 'close cursor') def test_kill_cursors_with_tuple(self): + # Some evergreen distros (Debian 7.1) still test against 3.6.5 where + # OP_KILL_CURSORS does not work. + if (client_context.is_mongos and client_context.auth_enabled and + (3, 6, 0) <= client_context.version < (3, 6, 6)): + raise SkipTest("SERVER-33553 This server version does not support " + "OP_KILL_CURSORS") + coll = self.client.pymongo_test.test coll.drop()