Skip to content

Commit 4cac781

Browse files
authored
PYTHON-5326 - Skip serverless tests with known issue (#2292)
1 parent aa6fa7a commit 4cac781

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/asynchronous/unified_format.py

+6
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,12 @@ def maybe_skip_test(self, spec):
551551
self.skipTest("PYTHON-5170 tests are flakey")
552552
if "Driver extends timeout while streaming" in spec["description"] and not _IS_SYNC:
553553
self.skipTest("PYTHON-5174 tests are flakey")
554+
if (
555+
"inserting _id with type null via clientBulkWrite" in spec["description"]
556+
or "commitTransaction fails after Interrupted" in spec["description"]
557+
or "commit is not retried after MaxTimeMSExpired error" in spec["description"]
558+
) and async_client_context.serverless:
559+
self.skipTest("PYTHON-5326 known serverless failures")
554560

555561
class_name = self.__class__.__name__.lower()
556562
description = spec["description"].lower()

test/unified_format.py

+6
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,12 @@ def maybe_skip_test(self, spec):
550550
self.skipTest("PYTHON-5170 tests are flakey")
551551
if "Driver extends timeout while streaming" in spec["description"] and not _IS_SYNC:
552552
self.skipTest("PYTHON-5174 tests are flakey")
553+
if (
554+
"inserting _id with type null via clientBulkWrite" in spec["description"]
555+
or "commitTransaction fails after Interrupted" in spec["description"]
556+
or "commit is not retried after MaxTimeMSExpired error" in spec["description"]
557+
) and client_context.serverless:
558+
self.skipTest("PYTHON-5326 known serverless failures")
553559

554560
class_name = self.__class__.__name__.lower()
555561
description = spec["description"].lower()

0 commit comments

Comments
 (0)