We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b538c28 commit b17764aCopy full SHA for b17764a
1 file changed
Lib/test/test_sqlite3/test_dbapi.py
@@ -1905,7 +1905,8 @@ def test_ctx_mgr_rollback_if_commit_failed(self):
1905
import sqlite3
1906
def wait():
1907
print("started")
1908
- assert "database is locked" in input()
+ line = input()
1909
+ assert "database is locked" in line or "no error" in line
1910
1911
cx = sqlite3.connect("{TESTFN}", timeout={self.CONNECTION_TIMEOUT})
1912
cx.create_function("wait", 0, wait)
0 commit comments