cpython/Lib/test/test_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: Don't print deprecated pysqlite version in test_sqlite3 (#95017) 2022-07-19 23:04:20 +02:00
__main__.py gh-94998: Remove redundant condition in test_sqlite3/__main__.py (#95052) 2022-07-20 18:07:47 +02:00
test_backup.py
test_cli.py [3.12] gh-108550: Speed up sqlite3 tests (GH-108551) (#108566) 2023-08-29 00:26:29 +02:00
test_dbapi.py [3.12] gh-108550: Speed up sqlite3 tests (GH-108551) (#108566) 2023-08-29 00:26:29 +02:00
test_dump.py [3.12] gh-64662: Fix virtual table support in sqlite3.Connection.iterdump (#108340) (#108563) 2023-08-29 00:25:35 +02:00
test_factory.py gh-100553: Improve accuracy of sqlite3.Row iter test (#100555) 2022-12-28 01:58:05 +01:00
test_hooks.py gh-89301: Fix regression with bound values in traced SQLite statements (#92053) 2022-05-02 08:14:35 -06:00
test_regression.py GH-103805: Lib test f541 linting issue fix (#103812) 2023-04-24 23:24:49 +00:00
test_transactions.py [3.12] gh-108550: Speed up sqlite3 tests (GH-108551) (#108566) 2023-08-29 00:26:29 +02:00
test_types.py GH-103857: Deprecate utcnow and utcfromtimestamp (#103858) 2023-04-27 11:32:30 -06:00
test_userfunctions.py [3.12] gh-105557: Remove duplicate sqlite3 test method (GH-105558) (#105561) 2023-06-09 17:15:55 +00:00