Skip to content

Commit 9fb2378

Browse files
committed
PYTHON-5784 Remove underscore from base test class name
1 parent c1273fb commit 9fb2378

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/asynchronous/test_periodic_executor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def target():
4747
)
4848

4949

50-
class _AsyncPeriodicExecutorTestBase(AsyncUnitTest):
50+
class AsyncPeriodicExecutorTestBase(AsyncUnitTest):
5151
async def asyncSetUp(self):
5252
self.ex = _make_executor()
5353

@@ -64,7 +64,7 @@ async def test_repr_contains_class_and_name(self):
6464
self.assertIn("exec", r)
6565

6666

67-
class TestAsyncPeriodicExecutorBasic(_AsyncPeriodicExecutorTestBase):
67+
class TestAsyncPeriodicExecutorBasic(AsyncPeriodicExecutorTestBase):
6868
async def test_wake_sets_event(self):
6969
self.assertFalse(self.ex._event)
7070
self.ex.wake()
@@ -80,7 +80,7 @@ async def test_skip_sleep(self):
8080
self.assertTrue(self.ex._skip_sleep)
8181

8282

83-
class TestAsyncPeriodicExecutorLifecycle(_AsyncPeriodicExecutorTestBase):
83+
class TestAsyncPeriodicExecutorLifecycle(AsyncPeriodicExecutorTestBase):
8484
async def test_open_starts_worker(self):
8585
self.ex.open()
8686
if _IS_SYNC:
@@ -111,7 +111,7 @@ async def test_multiple_open_calls_have_no_effect(self):
111111
self.assertEqual(worker_id, id(self.ex._task))
112112

113113

114-
class TestAsyncPeriodicExecutorTarget(_AsyncPeriodicExecutorTestBase):
114+
class TestAsyncPeriodicExecutorTarget(AsyncPeriodicExecutorTestBase):
115115
async def test_target_returning_false_stops_executor(self):
116116
if _IS_SYNC:
117117
ran = threading.Event()

test/test_periodic_executor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def target():
4545
return PeriodicExecutor(interval=interval, min_interval=min_interval, target=target, name=name)
4646

4747

48-
class _PeriodicExecutorTestBase(UnitTest):
48+
class PeriodicExecutorTestBase(UnitTest):
4949
def setUp(self):
5050
self.ex = _make_executor()
5151

@@ -62,7 +62,7 @@ def test_repr_contains_class_and_name(self):
6262
self.assertIn("exec", r)
6363

6464

65-
class TestPeriodicExecutorBasic(_PeriodicExecutorTestBase):
65+
class TestPeriodicExecutorBasic(PeriodicExecutorTestBase):
6666
def test_wake_sets_event(self):
6767
self.assertFalse(self.ex._event)
6868
self.ex.wake()
@@ -78,7 +78,7 @@ def test_skip_sleep(self):
7878
self.assertTrue(self.ex._skip_sleep)
7979

8080

81-
class TestPeriodicExecutorLifecycle(_PeriodicExecutorTestBase):
81+
class TestPeriodicExecutorLifecycle(PeriodicExecutorTestBase):
8282
def test_open_starts_worker(self):
8383
self.ex.open()
8484
if _IS_SYNC:
@@ -109,7 +109,7 @@ def test_multiple_open_calls_have_no_effect(self):
109109
self.assertEqual(worker_id, id(self.ex._task))
110110

111111

112-
class TestPeriodicExecutorTarget(_PeriodicExecutorTestBase):
112+
class TestPeriodicExecutorTarget(PeriodicExecutorTestBase):
113113
def test_target_returning_false_stops_executor(self):
114114
if _IS_SYNC:
115115
ran = threading.Event()

0 commit comments

Comments
 (0)