Fix test failure linked to new mock release

Update a test using autospec to spec to make it work with mock 1.0

Change-Id: Id84e7c47663c8177047da8eb599f81a94e728def
This commit is contained in:
Thomas Herve 2015-07-13 22:23:32 +02:00
parent 4674da1954
commit 0f34126998
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class MongodbQueueTests(MongodbSetupMixin, base.QueueControllerTest):
with mock.patch.object(cursor.Cursor,
'next' if six.PY2 else '__next__',
autospec=True) as method:
spec=True) as method:
error = pymongo.errors.ConnectionFailure()
method.side_effect = error