https://github.com/python/cpython/commit/69a34938f8e09fd57b2ec38ae37efa4f596f273d
commit: 69a34938f8e09fd57b2ec38ae37efa4f596f273d
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2025-10-09T08:24:06Z
summary:

[3.13] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) 
(GH-139829)

(cherry picked from commit 65089406a54df6d3fdc65f5f7e7691ec5de088d8)

Co-authored-by: Peter <[email protected]>

files:
M Lib/test/test_sqlite3/__init__.py

diff --git a/Lib/test/test_sqlite3/__init__.py 
b/Lib/test/test_sqlite3/__init__.py
index d777fca82da4b0..78a1e2078a5da0 100644
--- a/Lib/test/test_sqlite3/__init__.py
+++ b/Lib/test/test_sqlite3/__init__.py
@@ -8,8 +8,7 @@
 
 # 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}")

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to