PYTHON-1757 Properly skip tests that require enableTestCommands

(cherry picked from commit 923229de12)
This commit is contained in:
Shane Harvey 2019-03-13 16:55:27 -07:00
parent 2ab5d181b6
commit bdfa2919e0

View File

@ -390,6 +390,7 @@ def end_sessions(sessions):
def create_test(scenario_def, test):
@client_context.require_test_commands
def run_scenario(self):
if test.get('skipReason'):
raise unittest.SkipTest(test.get('skipReason'))