comparison tests/test-storage.py @ 40453:1bf3e6041e2c stable

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
author Yuya Nishihara <yuya@tcha.org>
date Fri, 02 Nov 2018 21:25:35 +0900
parents c3ad9ef0876c
children 2372284d9457
comparison
equal deleted inserted replaced
40452:683e99f0b30c 40453:1bf3e6041e2c
21 from hgext import ( 21 from hgext import (
22 sqlitestore, 22 sqlitestore,
23 ) 23 )
24 except ImportError: 24 except ImportError:
25 sqlitestore = None 25 sqlitestore = None
26
27 try:
28 import sqlite3
29 if sqlite3.sqlite_version_info < (3, 8, 3):
30 # WITH clause not supported
31 sqlitestore = None
32 except ImportError:
33 pass
26 34
27 try: 35 try:
28 from mercurial import zstd 36 from mercurial import zstd
29 zstd.__version__ 37 zstd.__version__
30 except ImportError: 38 except ImportError: