Skip to content

Commit ab8b959

Browse files
committed
PYTHON-2453 Skip dropRole tests due to SERVER-53499
1 parent d441a12 commit ab8b959

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,12 @@ def require_transactions(self, func):
715715
"Transactions are not supported",
716716
func=func)
717717

718+
def require_no_api_version(self, func):
719+
"""Skip this test when testing with requireApiVersion."""
720+
return self._require(not MONGODB_API_VERSION,
721+
"This test does not work with requireApiVersion",
722+
func=func)
723+
718724
def mongos_seeds(self):
719725
return ','.join('%s:%s' % address for address in self.mongoses)
720726

test/test_bulk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ class BulkAuthorizationTestBase(BulkTestBase):
364364

365365
@classmethod
366366
@client_context.require_auth
367+
@client_context.require_no_api_version
367368
def setUpClass(cls):
368369
super(BulkAuthorizationTestBase, cls).setUpClass()
369370

0 commit comments

Comments
 (0)