File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ def setUpClass(cls):
546
546
547
547
# add any special-casing for skipping tests here
548
548
if client_context .storage_engine == 'mmapv1' :
549
- if cls .TEST_SPEC ['description' ]. find ( 'retryable-writes' ) != - 1 :
549
+ if 'retryable-writes' in cls .TEST_SPEC ['description' ]:
550
550
raise unittest .SkipTest (
551
551
"MMAPv1 does not support retryWrites=True" )
552
552
@@ -573,8 +573,7 @@ def setUp(self):
573
573
def maybe_skip_test (self , spec ):
574
574
# add any special-casing for skipping tests here
575
575
if client_context .storage_engine == 'mmapv1' :
576
- if spec ['description' ].find (
577
- 'Dirty explicit session is discarded' ) != - 1 :
576
+ if 'Dirty explicit session is discarded' in spec ['description' ]:
578
577
raise unittest .SkipTest (
579
578
"MMAPv1 does not support retryWrites=True" )
580
579
You can’t perform that action at this time.
0 commit comments