Skip to content

Commit 63c4bcc

Browse files
committed
PYTHON-5784 Add test_periodic_executor.py to synchro converted_tests
The synchronous test was generated but not post-processed (still had 'from test.synchronous import', _IS_SYNC=False, and the async class name) because test_periodic_executor.py was missing from converted_tests. Add it and regenerate so the sync file flips _IS_SYNC=True, fixes its imports, and renames the class to TestPeriodicExecutor.
1 parent 33423d9 commit 63c4bcc

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

test/test_periodic_executor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323

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

26-
from test.synchronous import UnitTest, unittest
26+
from test import UnitTest, unittest
2727

2828
from pymongo.periodic_executor import PeriodicExecutor
2929

30-
_IS_SYNC = False
30+
_IS_SYNC = True
3131

3232

33-
class TestAsyncPeriodicExecutor(UnitTest):
33+
class TestPeriodicExecutor(UnitTest):
3434
def _make_executor(self, interval=30.0, min_interval=0.01, target=None, name="test"):
3535
if target is None:
3636

tools/synchro.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def async_only_test(f: str) -> bool:
253253
"test_monitoring.py",
254254
"test_mongos_load_balancing.py",
255255
"test_on_demand_csfle.py",
256+
"test_periodic_executor.py",
256257
"test_pooling.py",
257258
"test_raw_bson.py",
258259
"test_read_concern.py",

0 commit comments

Comments
 (0)