bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809)

Automerge-Triggered-By: GH:pablogsal
This commit is contained in:
Erlend Egeberg Aasland 2021-10-07 21:48:13 +02:00 committed by GitHub
parent 768aaf6c43
commit 8deb7afbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -168,9 +168,9 @@ class ModuleTests(unittest.TestCase):
"SQLITE_TRANSACTION", "SQLITE_TRANSACTION",
"SQLITE_UPDATE", "SQLITE_UPDATE",
] ]
if sqlite.version_info >= (3, 7, 17): if sqlite.sqlite_version_info >= (3, 7, 17):
consts += ["SQLITE_NOTICE", "SQLITE_WARNING"] 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.append("SQLITE_RECURSIVE")
consts += ["PARSE_DECLTYPES", "PARSE_COLNAMES"] consts += ["PARSE_DECLTYPES", "PARSE_COLNAMES"]
for const in consts: for const in consts: