@@ -141,40 +141,10 @@ async def asyncTearDown(self) -> None:
141141 self .deprecation_filter .stop ()
142142
143143
144- class TestRetryableWritesMMAPv1 (IgnoreDeprecationsTest ):
145- knobs : client_knobs
146-
147- async def asyncSetUp (self ) -> None :
148- await super ().asyncSetUp ()
149- # Speed up the tests by decreasing the heartbeat frequency.
150- self .knobs = client_knobs (heartbeat_frequency = 0.1 , min_heartbeat_interval = 0.1 )
151- self .knobs .enable ()
152- self .client = await self .async_rs_or_single_client (retryWrites = True )
153- self .db = self .client .pymongo_test
154-
155- async def asyncTearDown (self ) -> None :
156- self .knobs .disable ()
157-
158- @async_client_context .require_no_standalone
159- async def test_actionable_error_message (self ):
160- if async_client_context .storage_engine != "mmapv1" :
161- raise SkipTest ("This cluster is not running MMAPv1" )
162-
163- expected_msg = (
164- "This MongoDB deployment does not support retryable "
165- "writes. Please add retryWrites=false to your "
166- "connection string."
167- )
168- for method , args , kwargs in retryable_single_statement_ops (self .db .retryable_write_test ):
169- with self .assertRaisesRegex (OperationFailure , expected_msg ):
170- await method (* args , ** kwargs )
171-
172-
173144class TestRetryableWrites (IgnoreDeprecationsTest ):
174145 listener : OvertCommandListener
175146 knobs : client_knobs
176147
177- @async_client_context .require_no_mmap
178148 async def asyncSetUp (self ) -> None :
179149 await super ().asyncSetUp ()
180150 # Speed up the tests by decreasing the heartbeat frequency.
@@ -427,7 +397,6 @@ class TestWriteConcernError(AsyncIntegrationTest):
427397 fail_insert : dict
428398
429399 @async_client_context .require_replica_set
430- @async_client_context .require_no_mmap
431400 @async_client_context .require_failCommand_fail_point
432401 async def asyncSetUp (self ) -> None :
433402 await super ().asyncSetUp ()
@@ -599,7 +568,6 @@ async def test_returns_original_error_code(
599568# TODO: Make this a real integration test where we stepdown the primary.
600569class TestRetryableWritesTxnNumber (IgnoreDeprecationsTest ):
601570 @async_client_context .require_replica_set
602- @async_client_context .require_no_mmap
603571 async def test_increment_transaction_id_without_sending_command (self ):
604572 """Test that the txnNumber field is properly incremented, even when
605573 the first attempt fails before sending the command.
0 commit comments