aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/py/lib/db.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/py/lib/db.py b/test/py/lib/db.py
index b9059c5..9fddbf5 100644
--- a/test/py/lib/db.py
+++ b/test/py/lib/db.py
@@ -4,12 +4,14 @@
# Distributed under the MIT License.
from contextlib import closing, contextmanager
+import logging
import sqlite3
class Database:
def __init__(self, path):
- self.conn = sqlite3.connect(f'file:{path}?mode=ro')
+ logging.info('Opening SQLite database: %s', path)
+ self.conn = sqlite3.connect(f'file:{path}?mode=ro', uri=True)
def __enter__(self):
return self