Skip to content

Commit f439204

Browse files
authored
PYTHON-4692 Skip TestClientBulkWriteCSOT on MacOS and Windows (#1810)
1 parent 50586ba commit f439204

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/asynchronous/test_client_bulk_write.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Test the client bulk write API."""
1616
from __future__ import annotations
1717

18+
import os
1819
import sys
1920

2021
sys.path[0:0] = [""]
@@ -567,6 +568,8 @@ async def test_returns_error_if_auto_encryption_configured(self):
567568
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
568569
class TestClientBulkWriteCSOT(AsyncIntegrationTest):
569570
async def asyncSetUp(self):
571+
if os.environ.get("SKIP_CSOT_TESTS", ""):
572+
raise unittest.SkipTest("SKIP_CSOT_TESTS is set, skipping...")
570573
self.max_write_batch_size = await async_client_context.max_write_batch_size
571574
self.max_bson_object_size = await async_client_context.max_bson_size
572575
self.max_message_size_bytes = await async_client_context.max_message_size_bytes

test/test_client_bulk_write.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Test the client bulk write API."""
1616
from __future__ import annotations
1717

18+
import os
1819
import sys
1920

2021
sys.path[0:0] = [""]
@@ -567,6 +568,8 @@ def test_returns_error_if_auto_encryption_configured(self):
567568
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
568569
class TestClientBulkWriteCSOT(IntegrationTest):
569570
def setUp(self):
571+
if os.environ.get("SKIP_CSOT_TESTS", ""):
572+
raise unittest.SkipTest("SKIP_CSOT_TESTS is set, skipping...")
570573
self.max_write_batch_size = client_context.max_write_batch_size
571574
self.max_bson_object_size = client_context.max_bson_size
572575
self.max_message_size_bytes = client_context.max_message_size_bytes

0 commit comments

Comments
 (0)