]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
rewrite pool subsecond test to use mocking
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 14:03:09 +0000 (10:03 -0400)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 18:07:34 +0000 (18:07 +0000)
commit3e2c7ffa4e550c61b259f84212a00c09616683d1
tree8a3badf92a93007e87e148cda646075e18943336
parente03626437b94e583d89d35d05a78f35153c8aa6a
rewrite pool subsecond test to use mocking

the timing here is too sensitive to play out reliably
on CI machines particularly free threaded, so mock the time()
callable instead and ensure with subsecond clock intervals
we do the right math

Change-Id: Icc203ae2298eb4b64e3b45f063811e9527278d0c
(cherry picked from commit 4147accbd2b70493c01df18fd0d4598c4e1cb72e)
test/engine/test_pool.py