PYTHON-1706 Fix issues found by coverity pt. 1 (#377)
This commit is contained in:
parent
ff5f1ce8a4
commit
51119f09ee
@ -1031,7 +1031,7 @@ class Database(common.BaseObject):
|
||||
|
||||
opts["roles"] = [self._default_role(read_only)]
|
||||
|
||||
elif read_only:
|
||||
if read_only:
|
||||
warnings.warn("The read_only option is deprecated in MongoDB "
|
||||
">= 2.6, use 'roles' instead", DeprecationWarning)
|
||||
|
||||
|
||||
@ -357,7 +357,7 @@ class TestCursor(IntegrationTest):
|
||||
self.assertTrue(coll.find().explain())
|
||||
started = listener.results['started']
|
||||
self.assertEqual(len(started), 1)
|
||||
self.assertNotIn("readConern", started[0].command)
|
||||
self.assertNotIn("readConcern", started[0].command)
|
||||
|
||||
def test_hint(self):
|
||||
db = self.db
|
||||
|
||||
Loading…
Reference in New Issue
Block a user