* 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.
@@ -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.
