Skip to content

Commit 9d8759e

Browse files
committed
skip more tests
1 parent 15ae713 commit 9d8759e

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

test/asynchronous/test_client_bulk_write.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@ async def asyncSetUp(self):
630630
# PYTHON-5290
631631
@flaky(max_runs=3, affects_cpython_linux=True)
632632
async def test_timeout_in_multi_batch_bulk_write(self):
633-
if sys.platform == "win32":
634-
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows")
633+
if sys.platform != "linux":
634+
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows and MacOS")
635635
_OVERHEAD = 500
636636

637637
internal_client = await self.async_rs_or_single_client(timeoutMS=None)

test/asynchronous/unified_format.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,11 @@ def maybe_skip_test(self, spec):
533533
class_name = self.__class__.__name__.lower()
534534
description = spec["description"].lower()
535535
if "csot" in class_name:
536-
# Skip tests that are too slow to run on a given platform.
537-
slow_win32 = [
538-
"maxtimems value in the command is less than timeoutms",
539-
"non-tailable cursor lifetime remaining timeoutms applied to getmore if timeoutmode is unset",
540-
]
536+
if sys.platform == "win32":
537+
self.skipTest("PYTHON-3522 CSOT tests run too slow on Windows")
541538
slow_macos = [
542539
"non-tailable cursor lifetime remaining timeoutms applied to getmore if timeoutmode is unset"
543540
]
544-
if sys.platform == "win32" and description in slow_win32 or "gridfs" in class_name:
545-
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows")
546541
if sys.platform == "darwin" and description in slow_macos:
547542
self.skipTest("PYTHON-3522 CSOT test runs too slow on MacOS")
548543
if async_client_context.storage_engine == "mmapv1":

test/test_client_bulk_write.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ def setUp(self):
626626
# PYTHON-5290
627627
@flaky(max_runs=3, affects_cpython_linux=True)
628628
def test_timeout_in_multi_batch_bulk_write(self):
629-
if sys.platform == "win32":
630-
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows")
629+
if sys.platform != "linux":
630+
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows and MacOS")
631631
_OVERHEAD = 500
632632

633633
internal_client = self.rs_or_single_client(timeoutMS=None)

test/unified_format.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -532,16 +532,11 @@ def maybe_skip_test(self, spec):
532532
class_name = self.__class__.__name__.lower()
533533
description = spec["description"].lower()
534534
if "csot" in class_name:
535-
# Skip tests that are too slow to run on a given platform.
536-
slow_win32 = [
537-
"maxtimems value in the command is less than timeoutms",
538-
"non-tailable cursor lifetime remaining timeoutms applied to getmore if timeoutmode is unset",
539-
]
535+
if sys.platform == "win32":
536+
self.skipTest("PYTHON-3522 CSOT tests run too slow on Windows")
540537
slow_macos = [
541538
"non-tailable cursor lifetime remaining timeoutms applied to getmore if timeoutmode is unset"
542539
]
543-
if sys.platform == "win32" and description in slow_win32 or "gridfs" in class_name:
544-
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows")
545540
if sys.platform == "darwin" and description in slow_macos:
546541
self.skipTest("PYTHON-3522 CSOT test runs too slow on MacOS")
547542
if client_context.storage_engine == "mmapv1":

0 commit comments

Comments
 (0)