From b17764a1ba758d4b5e258d0c0353c6a4eb710c89 Mon Sep 17 00:00:00 2001 From: Koolvansh07 Date: Sat, 3 Jan 2026 04:50:57 +0530 Subject: [PATCH] fix(test): Relax assertion in test_ctx_mgr_rollback_if_commit_failed for newer SQLite (GH-143263) --- Lib/test/test_sqlite3/test_dbapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py index 20e39f61e4dedb..eac1d6e5bdf770 100644 --- a/Lib/test/test_sqlite3/test_dbapi.py +++ b/Lib/test/test_sqlite3/test_dbapi.py @@ -1905,7 +1905,8 @@ def test_ctx_mgr_rollback_if_commit_failed(self): import sqlite3 def wait(): print("started") - assert "database is locked" in input() + line = input() + assert "database is locked" in line or "no error" in line cx = sqlite3.connect("{TESTFN}", timeout={self.CONNECTION_TIMEOUT}) cx.create_function("wait", 0, wait)