Skip to content

Commit 807ab5a

Browse files
authored
PYTHON-2363 Skip CMAP test when failCommand is not supported (#523)
1 parent d1fd3f7 commit 807ab5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_cmap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def _set_fail_point(self, client, command_args):
190190
client.admin.command(cmd)
191191

192192
def set_fail_point(self, command_args):
193+
if not client_context.supports_failCommand_fail_point:
194+
self.skipTest('failCommand fail point must be supported')
193195
self._set_fail_point(self.client, command_args)
194196

195197
def run_scenario(self, scenario_def, test):

0 commit comments

Comments
 (0)