From 70b48a3b16669d2b02711f2c95714665902c3450 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Jul 2026 18:51:55 +0000 Subject: [PATCH] Use the sqlite3/sqlean shim in test_query.py test_query_executes_eagerly failed on the sqlean CI matrix jobs because sqlean.dbapi2.OperationalError is not a subclass of the stdlib sqlite3.OperationalError. Import sqlite3 via sqlite_utils.utils like the other test modules do. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01UnLnhsH25Nnv7LHhekUfPd --- tests/test_query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_query.py b/tests/test_query.py index 0b0b9c5..91bf1ac 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -1,7 +1,8 @@ import pytest -import sqlite3 import types +from sqlite_utils.utils import sqlite3 + def test_query(fresh_db): fresh_db["dogs"].insert_all([{"name": "Cleo"}, {"name": "Pancakes"}])