Skip to content

Commit

Permalink
test: Try engine.dispose() to release file handle for SQLite database…
Browse files Browse the repository at this point in the history
… in Windows tests
  • Loading branch information
jpmckinney committed Oct 4, 2023
1 parent 034a92c commit 82233b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions csvkit/utilities/csvsql.py
Expand Up @@ -151,6 +151,7 @@ def main(self):

if self.connection:
self.connection.close()
engine.dispose()

def _failsafe_main(self):
"""
Expand Down
1 change: 1 addition & 0 deletions csvkit/utilities/sql2csv.py
Expand Up @@ -80,6 +80,7 @@ def main(self):
output.writerow(row)

connection.close()
engine.dispose()


def launch_new_instance():
Expand Down

0 comments on commit 82233b8

Please sign in to comment.