PYTHON-2063 Fix faulty command construction in failpoint context manager
This commit is contained in:
parent
ec4b02052d
commit
b8ce14dfd2
@ -740,9 +740,8 @@ class IntegrationTest(PyMongoTestCase):
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
cmd_off = {'configureFailPoint': cmd_on['configureFailPoint'],
|
||||
'mode': 'off'}
|
||||
self.client.admin.command(cmd_off)
|
||||
self.client.admin.command(
|
||||
'configureFailPoint', cmd_on['configureFailPoint'], mode='off')
|
||||
|
||||
# Use assertRaisesRegex if available, otherwise use Python 2.7's
|
||||
# deprecated assertRaisesRegexp, with a 'p'.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user