Skip to content

Commit 9b4fd45

Browse files
committed
skip flakey test for now
1 parent c4beba1 commit 9b4fd45

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

test/asynchronous/unified_format.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,12 @@ def maybe_skip_test(self, spec):
545545
self.skipTest("Implement PYTHON-1894")
546546
if "timeoutMS applied to entire download" in spec["description"]:
547547
self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime")
548+
if (
549+
"Error returned from connection pool clear with interruptInUseConnections=true is retryable"
550+
in spec["description"]
551+
and not _IS_SYNC
552+
):
553+
self.skipTest("PYTHON-5170 tests are flakey")
548554

549555
class_name = self.__class__.__name__.lower()
550556
description = spec["description"].lower()
@@ -1387,7 +1393,6 @@ async def run_scenario(self, spec, uri=None):
13871393

13881394
if "csot" in self.id().lower():
13891395
# Retry CSOT tests up to 2 times to deal with flakey tests.
1390-
# discovery_and_monitoring tests on windows are also flakey
13911396
attempts = 3
13921397
for i in range(attempts):
13931398
try:

test/unified_format.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ def maybe_skip_test(self, spec):
544544
self.skipTest("Implement PYTHON-1894")
545545
if "timeoutMS applied to entire download" in spec["description"]:
546546
self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime")
547+
if (
548+
"Error returned from connection pool clear with interruptInUseConnections=true is retryable"
549+
in spec["description"]
550+
and not _IS_SYNC
551+
):
552+
self.skipTest("PYTHON-5170 tests are flakey")
547553

548554
class_name = self.__class__.__name__.lower()
549555
description = spec["description"].lower()
@@ -1374,7 +1380,6 @@ def run_scenario(self, spec, uri=None):
13741380

13751381
if "csot" in self.id().lower():
13761382
# Retry CSOT tests up to 2 times to deal with flakey tests.
1377-
# discovery_and_monitoring tests on windows are also flakey
13781383
attempts = 3
13791384
for i in range(attempts):
13801385
try:

0 commit comments

Comments
 (0)