Skip to content

Commit

Permalink
Merge pull request #17452 from infosiftr/python-sqlite3-DeprecationWa…
Browse files Browse the repository at this point in the history
…rning

Use keyword arguments in `python-sqlite3` test
  • Loading branch information
yosifkit authored Aug 30, 2024
2 parents 31cbe02 + 9ae8bf1 commit d1a7ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests/python-sqlite3/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ver = sqlite3.sqlite_version

con = sqlite3.connect(':memory:', 1, sqlite3.PARSE_DECLTYPES, None)
con = sqlite3.connect(':memory:', timeout=1, detect_types=sqlite3.PARSE_DECLTYPES, isolation_level=None)
cur = con.cursor()
cur.execute('CREATE TABLE test (id INT, txt TEXT)')
cur.execute('INSERT INTO test VALUES (?, ?)', (42, 'wut'))
Expand Down

0 comments on commit d1a7ffc

Please sign in to comment.