From 5d9b9b5aac6b11fddb970c68c190993b881ac4ed Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Wed, 16 Apr 2025 13:57:02 -0400 Subject: [PATCH] PYTHON-5326 - Skip serverless tests with known issue --- test/asynchronous/unified_format.py | 6 ++++++ test/unified_format.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/asynchronous/unified_format.py b/test/asynchronous/unified_format.py index 9099efbf0f..10b247d1fa 100644 --- a/test/asynchronous/unified_format.py +++ b/test/asynchronous/unified_format.py @@ -551,6 +551,12 @@ def maybe_skip_test(self, spec): self.skipTest("PYTHON-5170 tests are flakey") if "Driver extends timeout while streaming" in spec["description"] and not _IS_SYNC: self.skipTest("PYTHON-5174 tests are flakey") + if ( + "inserting _id with type null via clientBulkWrite" in spec["description"] + or "commitTransaction fails after Interrupted" in spec["description"] + or "commit is not retried after MaxTimeMSExpired error" in spec["description"] + ) and async_client_context.serverless: + self.skipTest("PYTHON-5326 known serverless failures") class_name = self.__class__.__name__.lower() description = spec["description"].lower() diff --git a/test/unified_format.py b/test/unified_format.py index 71d6cd50d4..d3da2b3a82 100644 --- a/test/unified_format.py +++ b/test/unified_format.py @@ -550,6 +550,12 @@ def maybe_skip_test(self, spec): self.skipTest("PYTHON-5170 tests are flakey") if "Driver extends timeout while streaming" in spec["description"] and not _IS_SYNC: self.skipTest("PYTHON-5174 tests are flakey") + if ( + "inserting _id with type null via clientBulkWrite" in spec["description"] + or "commitTransaction fails after Interrupted" in spec["description"] + or "commit is not retried after MaxTimeMSExpired error" in spec["description"] + ) and client_context.serverless: + self.skipTest("PYTHON-5326 known serverless failures") class_name = self.__class__.__name__.lower() description = spec["description"].lower()