Skip to content
Snippets Groups Projects
Commit 1bf3e6041e2c authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

tests: require SQLite 3.8.3+ as sqlitestore relies on "WITH" clause

The test fails on gcc112 because the SQLite is too old.

https://sqlite.org/changes.html#version_3_8_3
parent 683e99f0b30c
No related branches found
No related tags found
No related merge requests found
......@@ -791,7 +791,7 @@
def has_sqlite():
try:
import sqlite3
sqlite3.sqlite_version
version = sqlite3.sqlite_version_info
except ImportError:
return False
......@@ -795,6 +795,10 @@
except ImportError:
return False
if version < (3, 8, 3):
# WITH clause not supported
return False
return matchoutput('sqlite3 -version', b'^3\.\d+')
@check('vcr', 'vcr http mocking library')
......
......@@ -25,6 +25,14 @@
sqlitestore = None
try:
import sqlite3
if sqlite3.sqlite_version_info < (3, 8, 3):
# WITH clause not supported
sqlitestore = None
except ImportError:
pass
try:
from mercurial import zstd
zstd.__version__
except ImportError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment