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 897e2b4 commit 57b37a9Copy full SHA for 57b37a9
Lib/test/test_sqlite3/__init__.py
@@ -6,9 +6,14 @@
6
import os
7
import sqlite3
8
9
+# make sure only print once
10
+_printed_version = False
11
+
12
# Implement the unittest "load tests" protocol.
-def load_tests(*args):
- if verbose:
13
+def load_tests(loader, tests, pattern):
14
+ global _printed_version
15
+ if verbose and not _printed_version:
16
print(f"test_sqlite3: testing with SQLite version {sqlite3.sqlite_version}")
17
+ _printed_version = True
18
pkg_dir = os.path.dirname(__file__)
- return load_package_tests(pkg_dir, *args)
19
+ return load_package_tests(pkg_dir, loader, tests, pattern)
0 commit comments