]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-108550: Speed up sqlite3 tests (#108551) (#108567)
authorErlend E. Aasland <erlend@python.org>
Mon, 28 Aug 2023 13:09:10 +0000 (15:09 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Aug 2023 13:09:10 +0000 (13:09 +0000)
commit6f6171b33bf096130ba776b9fc518b1181f1e01c
treeca88d7ec6b76600771f82dd9371fb80b3e8c6fb3
parentc19713d4a1d7c4033ae18896ab2b6714cf60fb21
[3.11] gh-108550: Speed up sqlite3 tests (#108551) (#108567)

Disable the busy handler for all concurrency tests; we have full
control over the order of the SQLite C API calls, so we can safely
do this.

test_sqlite3.test_transactions now completes ~10 times faster than before.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_sqlite3/test_dbapi.py
Lib/test/test_sqlite3/test_transactions.py