File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -909,10 +909,13 @@ def sqlite_adbc_conn():
909
909
pytest .importorskip ("adbc_driver_sqlite" )
910
910
from adbc_driver_sqlite import dbapi
911
911
912
- with tm .ensure_clean () as name :
913
- uri = f"file:{ name } "
914
- with dbapi .connect (uri ) as conn :
915
- yield conn
912
+ try :
913
+ with tm .ensure_clean () as name :
914
+ uri = f"file:{ name } "
915
+ with dbapi .connect (uri ) as conn :
916
+ yield conn
917
+ finally :
918
+ conn .close ()
916
919
917
920
918
921
@pytest .fixture
@@ -942,7 +945,11 @@ def sqlite_adbc_types(sqlite_adbc_conn, types_data):
942
945
943
946
@pytest .fixture
944
947
def sqlite_buildin ():
945
- yield sqlite3 .connect (":memory:" )
948
+ try :
949
+ conn = sqlite3 .connect (":memory:" )
950
+ yield conn
951
+ finally :
952
+ conn .close ()
946
953
947
954
948
955
@pytest .fixture
You can’t perform that action at this time.
0 commit comments