cpython/Lib/test/test_sqlite3
Erlend E. Aasland 0e8b3fc718
gh-108550: Speed up sqlite3 tests (#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.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-08-28 14:17:34 +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 gh-105539: Fix ResourceWarning from unclosed SQLite connections in test_sqlite3 (#108360) 2023-08-23 10:10:08 +00:00
test_cli.py gh-108550: Speed up sqlite3 tests (#108551) 2023-08-28 14:17:34 +02:00
test_dbapi.py gh-108550: Speed up sqlite3 tests (#108551) 2023-08-28 14:17:34 +02:00
test_dump.py gh-64662: Add virtual table support to sqlite3.Connection.iterdump (#108340) 2023-08-28 00:18:32 +02:00
test_factory.py gh-105539: Explict resource management for connection objects in sqlite3 tests (#108017) 2023-08-17 08:45:48 +02:00
test_hooks.py gh-105539: Explict resource management for connection objects in sqlite3 tests (#108017) 2023-08-17 08:45:48 +02:00
test_regression.py gh-105539: Explict resource management for connection objects in sqlite3 tests (#108017) 2023-08-17 08:45:48 +02:00
test_transactions.py gh-108550: Speed up sqlite3 tests (#108551) 2023-08-28 14:17:34 +02:00
test_types.py gh-105875: Require SQLite 3.15.2 or newer (#105876) 2023-06-19 00:29:08 +02:00
test_userfunctions.py gh-105539: Explict resource management for connection objects in sqlite3 tests (#108017) 2023-08-17 08:45:48 +02:00
util.py gh-105539: Explict resource management for connection objects in sqlite3 tests (#108017) 2023-08-17 08:45:48 +02:00