Fix ruff lints in close-related tests

Drop unused `bad = ...` assignment and unused `import pytest`.

Refs #2692

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Simon Willison 2026-04-16 20:34:48 -07:00
commit ede942a32e
2 changed files with 1 additions and 3 deletions

View file

@ -289,7 +289,7 @@ async def test_datasette_close_continues_past_db_error():
def close(self):
raise RuntimeError("boom")
bad = ds.add_database(Boom(ds, is_memory=True), name="bad")
ds.add_database(Boom(ds, is_memory=True), name="bad")
good = ds.add_database(Database(ds, is_memory=True), name="good")
with pytest.raises(RuntimeError, match="boom"):
ds.close()

View file

@ -11,8 +11,6 @@ import sys
import textwrap
from pathlib import Path
import pytest
REPO_ROOT = Path(__file__).parent.parent