Skip to content

Commit 54d70d1

Browse files
committed
merge branch 'master' into PYTHON-5284
2 parents cf29328 + 448c8e8 commit 54d70d1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

test/asynchronous/test_concurrency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ async def test_concurrency(self):
5050
concurrent_time = time.time() - start
5151

5252
percent_faster = (sequential_time - concurrent_time) / concurrent_time * 100
53-
# We expect the concurrent tasks to be at least 75% faster on all platforms as a conservative benchmark
54-
self.assertGreaterEqual(percent_faster, 75)
53+
# We expect the concurrent tasks to be at least 50% faster on all platforms as a conservative benchmark
54+
self.assertGreaterEqual(percent_faster, 50)

test/asynchronous/unified_format.py

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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)