Skip to content

Commit 7cafe2a

Browse files
Add a check for missing extensions in sqlite3
1 parent 8d2d067 commit 7cafe2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/tests/modules-check.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ def test_sqlite3(self):
1010
print(f"{sqlite3.sqlite_version=}", end=" ", flush=True)
1111
assert sqlite3.sqlite_version_info[0:2] >= (3, 50)
1212

13+
# When the extension is not installed, it raises:
14+
# sqlite3.OperationalError: no such module: fts5
15+
conn = sqlite3.connect(":memory:")
16+
conn.execute("create virtual table fts5test using fts5 (data);")
17+
1318
def test_tkinter(self):
1419
# Make sure tkinter module can be loaded properly
1520
import tkinter as tk

0 commit comments

Comments
 (0)