Skip to content

Commit b17764a

Browse files
committed
fix(test): Relax assertion in test_ctx_mgr_rollback_if_commit_failed for newer SQLite (GH-143263)
1 parent b538c28 commit b17764a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_sqlite3/test_dbapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,8 @@ def test_ctx_mgr_rollback_if_commit_failed(self):
19051905
import sqlite3
19061906
def wait():
19071907
print("started")
1908-
assert "database is locked" in input()
1908+
line = input()
1909+
assert "database is locked" in line or "no error" in line
19091910
19101911
cx = sqlite3.connect("{TESTFN}", timeout={self.CONNECTION_TIMEOUT})
19111912
cx.create_function("wait", 0, wait)

0 commit comments

Comments
 (0)