Skip to content

Commit

Permalink
bpo-16379: Fix SQLite version checks in test_module_constants() (GH-2…
Browse files Browse the repository at this point in the history
…8809)

Automerge-Triggered-By: GH:pablogsal
  • Loading branch information
Erlend Egeberg Aasland authored Oct 7, 2021
1 parent 768aaf6 commit 8deb7af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/sqlite3/test/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ def test_module_constants(self):
"SQLITE_TRANSACTION",
"SQLITE_UPDATE",
]
if sqlite.version_info >= (3, 7, 17):
if sqlite.sqlite_version_info >= (3, 7, 17):
consts += ["SQLITE_NOTICE", "SQLITE_WARNING"]
if sqlite.version_info >= (3, 8, 3):
if sqlite.sqlite_version_info >= (3, 8, 3):
consts.append("SQLITE_RECURSIVE")
consts += ["PARSE_DECLTYPES", "PARSE_COLNAMES"]
for const in consts:
Expand Down

0 comments on commit 8deb7af

Please sign in to comment.