Skip to content

Commit

Permalink
Convert db Path to str for Python 3.6
Browse files Browse the repository at this point in the history
The sqlite3 module in Python 3.6 cannot take a Path in the connect()
call.
  • Loading branch information
volcan01010 committed Nov 4, 2022
1 parent fcf2561 commit bfa3440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/etl/test_abort.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_abort_etlhelper_threads(do_etl, log_keyword, tmpdir, caplog):
"""
# Arrange
# Create and populate a temporary SQLite database
db = tmpdir / 'test.db'
db = str(tmpdir / 'test.db') # sqlite3 on Python 3.6 requires a string

with sqlite3.connect(db) as conn:
execute("CREATE TABLE test (id INTEGER)", conn)
Expand Down

0 comments on commit bfa3440

Please sign in to comment.