File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1031,7 +1031,7 @@ def _create_or_update_user(
10311031
10321032 opts ["roles" ] = [self ._default_role (read_only )]
10331033
1034- elif read_only :
1034+ if read_only :
10351035 warnings .warn ("The read_only option is deprecated in MongoDB "
10361036 ">= 2.6, use 'roles' instead" , DeprecationWarning )
10371037
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ def test_explain_with_read_concern(self):
357357 self .assertTrue (coll .find ().explain ())
358358 started = listener .results ['started' ]
359359 self .assertEqual (len (started ), 1 )
360- self .assertNotIn ("readConern " , started [0 ].command )
360+ self .assertNotIn ("readConcern " , started [0 ].command )
361361
362362 def test_hint (self ):
363363 db = self .db
You can’t perform that action at this time.
0 commit comments