From 1cb9a0f59edb28591dae13072bb88212d922b8a1 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 30 Apr 2025 22:35:18 -0500 Subject: [PATCH] Make it more clear that it is a *threadless* thread pool --- tests/server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/server.py b/tests/server.py index 84ed9f68eb..f088e12182 100644 --- a/tests/server.py +++ b/tests/server.py @@ -486,7 +486,7 @@ class ThreadedMemoryReactorClock(MemoryReactorClock): """ def __init__(self) -> None: - self.threadpool = ThreadPool(self) + self.threadpool = ThreadlessThreadPool(self) self._tcp_callbacks: Dict[Tuple[str, int], Callable] = {} self._udp: List[udp.Port] = [] @@ -733,12 +733,12 @@ def make_fake_db_pool( pool.runWithConnection = runWithConnection # type: ignore[method-assign] pool.runInteraction = runInteraction # type: ignore[assignment] # Replace the thread pool with a threadless 'thread' pool - pool.threadpool = ThreadPool(reactor) + pool.threadpool = ThreadlessThreadPool(reactor) pool.running = True return pool -class ThreadPool: +class ThreadlessThreadPool: """ Threadless thread pool.