style(test): ruff format tdd timer cancel race steps (rebase fixup)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -142,6 +142,7 @@ def step_trigger_timer_race(context: Context) -> None:
|
||||
# Ensure client is in running state
|
||||
if client.state not in ("running",):
|
||||
from contextlib import suppress as _suppress
|
||||
|
||||
client._started = False
|
||||
client._shutting_down = False
|
||||
client._state = "idle"
|
||||
@@ -166,6 +167,7 @@ def step_trigger_timer_race(context: Context) -> None:
|
||||
|
||||
def shutdown_repeatedly() -> None:
|
||||
from contextlib import suppress
|
||||
|
||||
for _j in range(50):
|
||||
if client.state not in ("running",):
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user