Skip to content

Commit 5cf3268

Browse files
authored
PYTHON-5290 - Align client bulkwrite prose test with spec (#3009)
1 parent 066aeb3 commit 5cf3268

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎test/asynchronous/test_client_bulk_write.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import os
2020
import sys
2121

22+
from pymongo.operations import InsertOne, ReplaceOne, UpdateOne
23+
2224
sys.path[0:0] = [""]
2325

2426
from unittest.mock import patch
@@ -32,14 +34,12 @@
3234
InvalidOperation,
3335
NetworkTimeout,
3436
)
35-
from pymongo.operations import *
3637
from pymongo.write_concern import WriteConcern
3738
from test.asynchronous import (
3839
AsyncIntegrationTest,
3940
async_client_context,
4041
unittest,
4142
)
42-
from test.asynchronous.utils import flaky
4343
from test.utils_shared import (
4444
OvertCommandListener,
4545
)
@@ -634,7 +634,7 @@ async def asyncSetUp(self):
634634

635635
@async_client_context.require_version_min(8, 0, 0, -24)
636636
@async_client_context.require_failCommand_fail_point
637-
@flaky(reason="PYTHON-5290", max_runs=3, affects_cpython_linux=True)
637+
@async_client_context.require_standalone
638638
async def test_timeout_in_multi_batch_bulk_write(self):
639639
if sys.platform != "linux" and "CI" in os.environ:
640640
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows and MacOS")

‎test/test_client_bulk_write.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import os
2020
import sys
2121

22+
from pymongo.operations import InsertOne, ReplaceOne, UpdateOne
23+
2224
sys.path[0:0] = [""]
2325

2426
from unittest.mock import patch
@@ -31,15 +33,13 @@
3133
InvalidOperation,
3234
NetworkTimeout,
3335
)
34-
from pymongo.operations import *
3536
from pymongo.synchronous.client_bulk import _ClientBulk
3637
from pymongo.write_concern import WriteConcern
3738
from test import (
3839
IntegrationTest,
3940
client_context,
4041
unittest,
4142
)
42-
from test.utils import flaky
4343
from test.utils_shared import (
4444
OvertCommandListener,
4545
)
@@ -630,7 +630,7 @@ def setUp(self):
630630

631631
@client_context.require_version_min(8, 0, 0, -24)
632632
@client_context.require_failCommand_fail_point
633-
@flaky(reason="PYTHON-5290", max_runs=3, affects_cpython_linux=True)
633+
@client_context.require_standalone
634634
def test_timeout_in_multi_batch_bulk_write(self):
635635
if sys.platform != "linux" and "CI" in os.environ:
636636
self.skipTest("PYTHON-3522 CSOT test runs too slow on Windows and MacOS")

0 commit comments

Comments
 (0)