mirror of
https://github.com/simonw/datasette.git
synced 2026-06-04 16:16:59 +02:00
From 409 warnings down to 52 warnings.
By closing unclosed database connections. Refs #2614
This commit is contained in:
parent
9c164572d3
commit
f02484c3de
14 changed files with 75 additions and 27 deletions
|
|
@ -17,6 +17,8 @@ def ds_write(tmp_path_factory):
|
|||
db.execute(
|
||||
"create table docs (id integer primary key, title text, score float, age integer)"
|
||||
)
|
||||
db1.close()
|
||||
db2.close()
|
||||
ds = Datasette([db_path], immutables=[db_path_immutable])
|
||||
ds.root_enabled = True
|
||||
yield ds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue