Browse Source

Merge pull request #17452 from infosiftr/python-sqlite3-DeprecationWarning

Use keyword arguments in `python-sqlite3` test
yosifkit 1 year ago
parent
commit
d1a7ffce55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/tests/python-sqlite3/container.py

+ 1 - 1
test/tests/python-sqlite3/container.py

@@ -2,7 +2,7 @@ import sqlite3
 
 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'))