From 9aa5bb791a39fde2972002f8cc7e8ed2c28ff1bc Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Thu, 31 Jan 2019 16:46:09 -0800 Subject: [PATCH] PYTHON-1734 Skip failing index tests on MongoDB 4.1 --- test/test_legacy_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_legacy_api.py b/test/test_legacy_api.py index ea2bf944a..2daa66797 100644 --- a/test/test_legacy_api.py +++ b/test/test_legacy_api.py @@ -1263,6 +1263,7 @@ class TestLegacy(IntegrationTest): # Clean up indexes for later tests db.test.drop_indexes() + @client_context.require_version_max(4, 1) # PYTHON-1734 def test_ensure_index_threaded(self): coll = self.db.threaded_index_creation index_docs = [] @@ -1323,6 +1324,7 @@ class TestLegacy(IntegrationTest): finally: coll.drop() + @client_context.require_version_max(4, 1) # PYTHON-1734 def test_ensure_unique_index_threaded(self): coll = self.db.test_unique_threaded coll.drop()