]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Oct 2025 14:03:09 +0000 (10:03 -0400)
commit4147accbd2b70493c01df18fd0d4598c4e1cb72e
treecfe30116fbd3a3b8c1162fc4de338a9279b2a7cb
parent293af0439d87b51611206a6c8552048b02ddf995
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
test/engine/test_pool.py