We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57a29b5 + fc4f939 commit e8d7a03Copy full SHA for e8d7a03
1 file changed
test/test_worker_pool.py
@@ -12,10 +12,12 @@ class _NoopThread(threading.Thread):
12
def __init__(self, session_key: str, started: list[str]):
13
super().__init__(daemon=True)
14
self.session_key = session_key
15
- self._started = started
+ self._track = started # avoid overriding threading.Thread._started
16
17
def start(self) -> None: # type: ignore[override]
18
- self._started.append(self.session_key)
+ self._track.append(self.session_key)
19
+ # Mark as "alive" by setting _started event (required for is_alive() check)
20
+ self._started.set()
21
22
23
def test_per_session_worker_pool_reuses_same_key() -> None:
0 commit comments