tests/hghave.py
branchstable
changeset 40453 1bf3e6041e2c
parent 40326 fed697fa1734
child 41003 87c98ffbc8c7
--- a/tests/hghave.py	Fri Oct 19 22:09:53 2018 +0800
+++ b/tests/hghave.py	Fri Nov 02 21:25:35 2018 +0900
@@ -791,10 +791,14 @@
 def has_sqlite():
     try:
         import sqlite3
-        sqlite3.sqlite_version
+        version = sqlite3.sqlite_version_info
     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')