Skip to content

Commit 6508940

Browse files
authored
gh-139743: Avoid import-time print in test_sqlite3 (GH-139746)
1 parent 7f155f9 commit 6508940

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_sqlite3/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
# Implement the unittest "load tests" protocol.
1010
def load_tests(*args):
11+
if verbose:
12+
print(f"test_sqlite3: testing with SQLite version {sqlite3.sqlite_version}")
1113
pkg_dir = os.path.dirname(__file__)
1214
return load_package_tests(pkg_dir, *args)
13-
14-
if verbose:
15-
print(f"test_sqlite3: testing with SQLite version {sqlite3.sqlite_version}")

0 commit comments

Comments
 (0)