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 869a48a commit e963e2fCopy full SHA for e963e2f
Lib/test/test_sqlite3/__init__.py
@@ -6,10 +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.
13
def load_tests(loader, tests, pattern):
- # Only print on the top-level call
- if verbose and pattern is None:
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__)
19
return load_package_tests(pkg_dir, loader, tests, pattern)
0 commit comments