Skip to content

Commit e1675cc

Browse files
committed
close conns properly
1 parent 309315d commit e1675cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mergin/test/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,7 @@ def _create_test_table(db_file):
13641364
cursor.execute("CREATE TABLE test (fid SERIAL, txt TEXT);")
13651365
cursor.execute("INSERT INTO test VALUES (123, 'hello');")
13661366
cursor.execute("COMMIT;")
1367+
con.close()
13671368

13681369

13691370
def _create_spatial_table(db_file):
@@ -1479,6 +1480,7 @@ def test_push_gpkg_schema_change(mc):
14791480
# open a connection and keep it open (qgis does this with a pool of connections too)
14801481
acon2 = AnotherSqliteConn(test_gpkg)
14811482
acon2.run("select count(*) from simple;")
1483+
acon2.close()
14821484

14831485
# add a new table to ensure that geodiff will fail due to unsupported change
14841486
# (this simulates an independent reader/writer like GDAL)

0 commit comments

Comments
 (0)