We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5e4d9 commit 029ec91Copy full SHA for 029ec91
Lib/test/test_dbm_sqlite3.py
@@ -1,4 +1,3 @@
1
-import sqlite3
2
import sys
3
import test.support
4
import unittest
@@ -7,8 +6,12 @@
7
6
from pathlib import Path
8
from test.support import cpython_only, import_helper, os_helper
9
10
-
11
dbm_sqlite3 = import_helper.import_module("dbm.sqlite3")
+# N.B. The test will fail on some platforms without sqlite3
+# if the sqlite3 import is above the import of dbm.sqlite3.
12
+# This is deliberate: if the import helper managed to import dbm.sqlite3,
13
+# we must inevitably be able to import sqlite3. Else, we have a problem.
14
+import sqlite3
15
from dbm.sqlite3 import _normalize_uri
16
17
0 commit comments