]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Thu, 7 Oct 2021 19:48:13 +0000 (21:48 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 19:48:13 +0000 (12:48 -0700)
Automerge-Triggered-By: GH:pablogsal
Lib/sqlite3/test/test_dbapi.py

index c21688d2a774c9628ef2e42398cd0b73f4f0ea5a..d82543663d18bb40872122d5b17ad0af5ba4edc2 100644 (file)
@@ -168,9 +168,9 @@ class ModuleTests(unittest.TestCase):
             "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: