diff --git a/test/asynchronous/test_cursor.py b/test/asynchronous/test_cursor.py index 984545438e..8d2dbf532e 100644 --- a/test/asynchronous/test_cursor.py +++ b/test/asynchronous/test_cursor.py @@ -1411,7 +1411,7 @@ async def test_to_list_length(self): async def test_to_list_csot_applied(self): client = await self.async_single_client(timeoutMS=500, w=1) coll = client.pymongo.test - # Initialize the client with a larger timeout to help make test less flakey + # Initialize the client with a larger timeout to help make test less flaky with pymongo.timeout(10): await coll.insert_many([{} for _ in range(5)]) cursor = coll.find({"$where": delay(1)}) @@ -1453,7 +1453,7 @@ async def test_command_cursor_to_list_length(self): async def test_command_cursor_to_list_csot_applied(self): client = await self.async_single_client(timeoutMS=500, w=1) coll = client.pymongo.test - # Initialize the client with a larger timeout to help make test less flakey + # Initialize the client with a larger timeout to help make test less flaky with pymongo.timeout(10): await coll.insert_many([{} for _ in range(5)]) fail_command = { diff --git a/test/asynchronous/test_retryable_reads.py b/test/asynchronous/test_retryable_reads.py index a563e3974e..4ac694b58e 100644 --- a/test/asynchronous/test_retryable_reads.py +++ b/test/asynchronous/test_retryable_reads.py @@ -87,7 +87,7 @@ class TestPoolPausedError(AsyncIntegrationTest): async def test_pool_paused_error_is_retryable(self): if "PyPy" in sys.version: # Tracked in PYTHON-3519 - self.skipTest("Test is flakey on PyPy") + self.skipTest("Test is flaky on PyPy") cmap_listener = CMAPListener() cmd_listener = OvertCommandListener() client = await self.async_rs_or_single_client( diff --git a/test/asynchronous/test_srv_polling.py b/test/asynchronous/test_srv_polling.py index 05c4699653..18a367a498 100644 --- a/test/asynchronous/test_srv_polling.py +++ b/test/asynchronous/test_srv_polling.py @@ -262,6 +262,7 @@ def empty_seedlist(): await self._test_recover_from_initial(empty_seedlist) + @flaky(reason="PYTHON-5315") async def test_recover_from_initially_erroring_seedlist(self): def erroring_seedlist(): raise ConfigurationError diff --git a/test/test_cursor.py b/test/test_cursor.py index 74fe429269..4902d9e4df 100644 --- a/test/test_cursor.py +++ b/test/test_cursor.py @@ -1402,7 +1402,7 @@ def test_to_list_length(self): def test_to_list_csot_applied(self): client = self.single_client(timeoutMS=500, w=1) coll = client.pymongo.test - # Initialize the client with a larger timeout to help make test less flakey + # Initialize the client with a larger timeout to help make test less flaky with pymongo.timeout(10): coll.insert_many([{} for _ in range(5)]) cursor = coll.find({"$where": delay(1)}) @@ -1444,7 +1444,7 @@ def test_command_cursor_to_list_length(self): def test_command_cursor_to_list_csot_applied(self): client = self.single_client(timeoutMS=500, w=1) coll = client.pymongo.test - # Initialize the client with a larger timeout to help make test less flakey + # Initialize the client with a larger timeout to help make test less flaky with pymongo.timeout(10): coll.insert_many([{} for _ in range(5)]) fail_command = { diff --git a/test/test_retryable_reads.py b/test/test_retryable_reads.py index 5b87943fcc..cfd85b1ac5 100644 --- a/test/test_retryable_reads.py +++ b/test/test_retryable_reads.py @@ -87,7 +87,7 @@ class TestPoolPausedError(IntegrationTest): def test_pool_paused_error_is_retryable(self): if "PyPy" in sys.version: # Tracked in PYTHON-3519 - self.skipTest("Test is flakey on PyPy") + self.skipTest("Test is flaky on PyPy") cmap_listener = CMAPListener() cmd_listener = OvertCommandListener() client = self.rs_or_single_client( diff --git a/test/test_srv_polling.py b/test/test_srv_polling.py index fd5e58da57..87ab418302 100644 --- a/test/test_srv_polling.py +++ b/test/test_srv_polling.py @@ -262,6 +262,7 @@ def empty_seedlist(): self._test_recover_from_initial(empty_seedlist) + @flaky(reason="PYTHON-5315") def test_recover_from_initially_erroring_seedlist(self): def erroring_seedlist(): raise ConfigurationError