Skip to content

Conversation

@Koolvansh07
Copy link

@Koolvansh07 Koolvansh07 commented Jan 2, 2026

Relax the assertion in Lib/test/test_sqlite3/test_dbapi.py to allow "no error" in addition to "database is locked". This resolves a test failure observed with newer SQLite versions (e.g. 3.47.0+) where the locking behavior is less strict in this specific scenario. Fixes #143263

@bedevere-app
Copy link

bedevere-app bot commented Jan 2, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz
Copy link
Member

picnixz commented Jan 2, 2026

The fix is not just that. We need to understand whether the C code needs to be changed.

@picnixz picnixz closed this Jan 2, 2026
@picnixz
Copy link
Member

picnixz commented Jan 2, 2026

Also, please read our policy on AI: https://devguide.python.org/getting-started/generative-ai/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_ctx_mgr_rollback_if_commit_failed assumes outdated SQLite locking behavior

2 participants