From 9d7c24e8826804c4d2421964bbc06ab9ed35fea2 Mon Sep 17 00:00:00 2001
From: Egor Tensin <Egor.Tensin@gmail.com>
Date: Sun, 9 Jul 2023 16:15:52 +0200
Subject: test: fix sqlite3.connect usage

---
 test/py/lib/db.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'test/py/lib')

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
-- 
cgit v1.2.3