From c7e4308e6f49d929704163531632e558f9646e4a Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 25 Oct 2022 14:00:53 -0700 Subject: [PATCH] Use new db.close() method, refs #504 --- tests/test_recreate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_recreate.py b/tests/test_recreate.py index 0b98967..49dba2b 100644 --- a/tests/test_recreate.py +++ b/tests/test_recreate.py @@ -30,6 +30,6 @@ def test_recreate(tmp_path, use_path, create_file_first): db = Database(filepath) db["t1"].insert({"foo": "bar"}) assert ["t1"] == db.table_names() - db.conn.close() + db.close() Database(filepath, recreate=True)["t2"].insert({"foo": "bar"}) assert ["t2"] == Database(filepath).table_names()