mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
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>
This commit is contained in:
parent
c19713d4a1
commit
6f6171b33b
2 changed files with 7 additions and 11 deletions
|
|
@ -1837,7 +1837,7 @@ def test_on_conflict_replace(self):
|
|||
|
||||
@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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue