PYTHON-1706 Fix issues found by coverity pt. 1 (#377)

This commit is contained in:
Marek Skalický 2018-10-01 16:26:46 +01:00 committed by Shane Harvey
parent ff5f1ce8a4
commit 51119f09ee
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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