Skip to content

Commit b8ce14d

Browse files
committed
PYTHON-2063 Fix faulty command construction in failpoint context manager
1 parent ec4b020 commit b8ce14d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,8 @@ def fail_point(self, command_args):
740740
try:
741741
yield
742742
finally:
743-
cmd_off = {'configureFailPoint': cmd_on['configureFailPoint'],
744-
'mode': 'off'}
745-
self.client.admin.command(cmd_off)
743+
self.client.admin.command(
744+
'configureFailPoint', cmd_on['configureFailPoint'], mode='off')
746745

747746
# Use assertRaisesRegex if available, otherwise use Python 2.7's
748747
# deprecated assertRaisesRegexp, with a 'p'.

0 commit comments

Comments
 (0)