Fix Version/s: None
Team:Data Access and Database
Sogo Mineo hit some test failures because of a broken sqlite3 module. He writes:
At the beginning of
"haveSqlite3" was set to False because "import sqlite3" failed.
At line 77, the IF block was skipped because "haveSqlite3" is False.
The execution continued to reach line 89,
and PosixRegistry(root="filename.sqlite3") was created.
I think one of the following modifications is desirable:
1. Raise error when "not haveSqlite3 and re.match(r'.*\.sqlite3', location)"
before line 77.
2. Alter os.path.exists(location) to os.path.isdir(location) at line 88.
Line numbers refer to the HSC master branch, at https://github.com/HyperSuprime-Cam/daf_persistence