Mercurial > hg
comparison tests/hghave.py @ 46264:7149fb17ff72
hghave: clarify `sqlite` requirements
We need more than the python module, we also need the sqlite3 command line.
Differential Revision: https://phab.mercurial-scm.org/D9787
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 15 Jan 2021 14:05:32 +0100 |
parents | 0c320e6032f1 |
children | ef771d329961 |
comparison
equal
deleted
inserted
replaced
46263:d46646ce3158 | 46264:7149fb17ff72 |
---|---|
1004 @check('repofncache', 'repository has an fncache') | 1004 @check('repofncache', 'repository has an fncache') |
1005 def has_repofncache(): | 1005 def has_repofncache(): |
1006 return 'fncache' in getrepofeatures() | 1006 return 'fncache' in getrepofeatures() |
1007 | 1007 |
1008 | 1008 |
1009 @check('sqlite', 'sqlite3 module is available') | 1009 @check('sqlite', 'sqlite3 module and matching cli is available') |
1010 def has_sqlite(): | 1010 def has_sqlite(): |
1011 try: | 1011 try: |
1012 import sqlite3 | 1012 import sqlite3 |
1013 | 1013 |
1014 version = sqlite3.sqlite_version_info | 1014 version = sqlite3.sqlite_version_info |