From 561fc3f2f40f4e96e97d8bde0b470d6f7cab7417 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Mon, 31 Aug 2026 13:28:21 -0700 Subject: [PATCH] Rename crasher test helper to satisfy codespell Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_012U7coQfVu8nK2R4q2mCULA --- tests/test_background_tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_background_tasks.py b/tests/test_background_tasks.py index 713c1d06..fde7e7ed 100644 --- a/tests/test_background_tasks.py +++ b/tests/test_background_tasks.py @@ -244,14 +244,14 @@ async def test_crashing_task_logs_traceback_and_state_is_crashed(caplog): survivor_ran = asyncio.Event() - async def crasher(datasette): + async def crashing_task(datasette): raise RuntimeError("kaboom") async def survivor(datasette): survivor_ran.set() with caplog.at_level(logging.ERROR, logger="datasette.background_tasks"): - crash_handle = ds.add_background_task(crasher, name="crasher") + crash_handle = ds.add_background_task(crashing_task, name="crashing_task") survivor_handle = ds.add_background_task(survivor, name="survivor") await asyncio.wait_for( asyncio.gather( @@ -268,7 +268,7 @@ async def test_crashing_task_logs_traceback_and_state_is_crashed(caplog): assert survivor_ran.is_set() assert survivor_handle.state == "completed" - assert "crasher" in caplog.text + assert "crashing_task" in caplog.text assert "kaboom" in caplog.text assert "Traceback" in caplog.text assert "RuntimeError" in caplog.text