Author: kotkov
Date: Thu Nov 30 16:33:55 2017
New Revision: 1816729
URL: http://svn.apache.org/viewvc?rev=1816729&view=rev
Log:
* subversion/tests/cmdline/svntest/wc.py
(python_sqlite_can_read_wc): Simplify by checking the predefined value
of sqlite3.sqlite_version_info that contains the version number of the
run-time SQLite library.
Modified:
subversion/trunk/subversion/tests/cmdline/svntest/wc.py
Modified: subversion/trunk/subversion/tests/cmdline/svntest/wc.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/wc.py?rev=1816729&r1=1816728&r2=1816729&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/wc.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/wc.py Thu Nov 30 16:33:55
2017
@@ -1092,17 +1092,8 @@ def svn_uri_quote(url):
def python_sqlite_can_read_wc():
"""Check if the Python builtin is capable enough to peek into wc.db"""
-
- try:
- db = svntest.sqlite3.connect('')
-
- c = db.cursor()
- c.execute('select sqlite_version()')
- ver = tuple(map(int, c.fetchall()[0][0].split('.')))
-
- return ver >= (3, 6, 18) # Currently enough (1.7-1.9)
- except:
- return False
+ # Currently enough (1.7-1.9)
+ return svntest.sqlite3.sqlite_version_info >= (3, 6, 18)
def open_wc_db(local_path):
"""Open the SQLite DB for the WC path LOCAL_PATH.