]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) (GH-139829)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Oct 2025 08:24:06 +0000 (10:24 +0200)
committerGitHub <noreply@github.com>
Thu, 9 Oct 2025 08:24:06 +0000 (08:24 +0000)
(cherry picked from commit 65089406a54df6d3fdc65f5f7e7691ec5de088d8)

Co-authored-by: Peter <peter86225@gmail.com>
Lib/test/test_sqlite3/__init__.py

index d777fca82da4b0d8d9ce14ffff4d748081787dab..78a1e2078a5da0e37074d7c02db573af84ccac7b 100644 (file)
@@ -8,8 +8,7 @@ import sqlite3
 
 # Implement the unittest "load tests" protocol.
 def load_tests(*args):
+    if verbose:
+        print(f"test_sqlite3: testing with SQLite version {sqlite3.sqlite_version}")
     pkg_dir = os.path.dirname(__file__)
     return load_package_tests(pkg_dir, *args)
-
-if verbose:
-    print(f"test_sqlite3: testing with SQLite version {sqlite3.sqlite_version}")