From 17873b9b9c080e5fcb36dd6131a9c1a25a97dff6 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 9 Oct 2025 10:25:38 +0200 Subject: [PATCH] [3.14] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) (GH-139828) (cherry picked from commit 65089406a54df6d3fdc65f5f7e7691ec5de088d8) Co-authored-by: Peter --- Lib/test/test_sqlite3/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_sqlite3/__init__.py b/Lib/test/test_sqlite3/__init__.py index d777fca82da4..78a1e2078a5d 100644 --- a/Lib/test/test_sqlite3/__init__.py +++ b/Lib/test/test_sqlite3/__init__.py @@ -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}") -- 2.47.3