diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-10-07 19:48:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 19:48:13 (GMT) |
commit | 8deb7afbaaaad847656842375119f8dbef8aea54 (patch) | |
tree | e1f7b4ded55c1e53606a337902553f524e06d4a7 /Lib/sqlite3 | |
parent | 768aaf6c433e6a13b82c7bdebd0062c7472c1fc7 (diff) | |
download | cpython-8deb7afbaaaad847656842375119f8dbef8aea54.zip cpython-8deb7afbaaaad847656842375119f8dbef8aea54.tar.gz cpython-8deb7afbaaaad847656842375119f8dbef8aea54.tar.bz2 |
bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809)
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r-- | Lib/sqlite3/test/test_dbapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sqlite3/test/test_dbapi.py b/Lib/sqlite3/test/test_dbapi.py index c21688d..d825436 100644 --- a/Lib/sqlite3/test/test_dbapi.py +++ b/Lib/sqlite3/test/test_dbapi.py @@ -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: |