Skip to content

Commit 1c45977

Browse files
committed
add _is_sync = false to utils_selection_tests and add to synchro
1 parent 104ae52 commit 1c45977

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

test/asynchronous/utils_selection_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
from pymongo.operations import _Op
4040
from pymongo.server_selectors import writable_server_selector
4141

42+
_IS_SYNC = False
43+
4244

4345
def get_topology_settings_dict(**kwargs):
4446
settings = {

test/utils_selection_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import datetime
1919
import os
2020
import sys
21-
from test.synchronous import PyMongoTestCase
21+
from test import PyMongoTestCase
2222

2323
sys.path[0:0] = [""]
2424

@@ -39,6 +39,8 @@
3939
from pymongo.synchronous.settings import TopologySettings
4040
from pymongo.synchronous.topology import Topology
4141

42+
_IS_SYNC = True
43+
4244

4345
def get_topology_settings_dict(**kwargs):
4446
settings = {

tools/synchro.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def async_only_test(f: str) -> bool:
246246
"test_unified_format.py",
247247
"test_versioned_api_integration.py",
248248
"unified_format.py",
249+
"utils_selection_tests.py",
249250
]
250251

251252

0 commit comments

Comments
 (0)