diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-28 13:09:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 13:09:10 (GMT) |
commit | 6f6171b33bf096130ba776b9fc518b1181f1e01c (patch) | |
tree | ca88d7ec6b76600771f82dd9371fb80b3e8c6fb3 /Lib/test/test_sqlite3/test_dbapi.py | |
parent | c19713d4a1d7c4033ae18896ab2b6714cf60fb21 (diff) | |
download | cpython-6f6171b33bf096130ba776b9fc518b1181f1e01c.zip cpython-6f6171b33bf096130ba776b9fc518b1181f1e01c.tar.gz cpython-6f6171b33bf096130ba776b9fc518b1181f1e01c.tar.bz2 |
[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>
Diffstat (limited to 'Lib/test/test_sqlite3/test_dbapi.py')
-rw-r--r-- | Lib/test/test_sqlite3/test_dbapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py index 899f5cf..ff86291 100644 --- a/Lib/test/test_sqlite3/test_dbapi.py +++ b/Lib/test/test_sqlite3/test_dbapi.py @@ -1837,7 +1837,7 @@ class SqliteOnConflictTests(unittest.TestCase): @requires_subprocess() class MultiprocessTests(unittest.TestCase): - CONNECTION_TIMEOUT = SHORT_TIMEOUT / 1000. # Defaults to 30 ms + CONNECTION_TIMEOUT = 0 # Disable the busy timeout. def tearDown(self): unlink(TESTFN) |