cpython/Lib/sqlite3
Miss Islington (bot) f5c5f32f5a
[3.12] gh-108550: Speed up sqlite3 tests (GH-108551) (#108566)
gh-108550: Speed up sqlite3 tests (GH-108551)

Refactor the CLI so we can easily invoke it and mock command-line
arguments. Adapt the CLI tests so we no longer have to launch a
separate process.

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.

The sqlite3 test suite now completes ~8 times faster than before.

(cherry picked from commit 0e8b3fc718)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-08-29 00:26:29 +02:00
..
__init__.py gh-93370: Deprecate sqlite3.version and sqlite3.version_info (#93482) 2022-06-08 01:34:50 +02:00
__main__.py [3.12] gh-108550: Speed up sqlite3 tests (GH-108551) (#108566) 2023-08-29 00:26:29 +02:00
dbapi2.py gh-90016: Deprecate default sqlite3 adapters and converters (#94276) 2022-07-20 21:37:59 +02:00
dump.py [3.12] gh-64662: Fix virtual table support in sqlite3.Connection.iterdump (#108340) (#108563) 2023-08-29 00:25:35 +02:00