Skip to content

Commit 27727c2

Browse files
committed
fix warnings in test_sqlite3 and test_sqlite3_keys
1 parent e0a4311 commit 27727c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/test_input.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ def test_sqlite3():
313313
cursor.execute("INSERT INTO people VALUES (?, ?, ?)", values)
314314
cursor.execute("SELECT name, age, height FROM people ORDER BY name")
315315
result = tabulate(cursor, headers=["whom", "how old", "how tall"])
316+
conn.close()
316317
expected = """\
317318
whom how old how tall
318319
------ --------- ----------
@@ -337,6 +338,7 @@ def test_sqlite3_keys():
337338
'SELECT name "whom", age "how old", height "how tall" FROM people ORDER BY name'
338339
)
339340
result = tabulate(cursor, headers="keys")
341+
conn.close()
340342
expected = """\
341343
whom how old how tall
342344
------ --------- ----------

0 commit comments

Comments
 (0)