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(
1031
1031
1032
1032
opts ["roles" ] = [self ._default_role (read_only )]
1033
1033
1034
- elif read_only :
1034
+ if read_only :
1035
1035
warnings .warn ("The read_only option is deprecated in MongoDB "
1036
1036
">= 2.6, use 'roles' instead" , DeprecationWarning )
1037
1037
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ def test_explain_with_read_concern(self):
357
357
self .assertTrue (coll .find ().explain ())
358
358
started = listener .results ['started' ]
359
359
self .assertEqual (len (started ), 1 )
360
- self .assertNotIn ("readConern " , started [0 ].command )
360
+ self .assertNotIn ("readConcern " , started [0 ].command )
361
361
362
362
def test_hint (self ):
363
363
db = self .db
You can’t perform that action at this time.
0 commit comments