From fc1fef7a5c7459897ac48ec23507e684153227cd Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 15 Oct 2025 16:52:21 -0400 Subject: [PATCH] fixes for 3.14t on github actions Change-Id: Ibc99e3dfdfd2a516c336090570df64875d97b653 --- test/engine/test_pool.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 151b7633db..9115af0dcb 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -1090,7 +1090,12 @@ class QueuePoolTest(PoolTestBase): c2 = p.connect() # noqa # Python timing is not very accurate, the time diff should be very # close to 0.5s but we give 200ms of slack. - assert 0.3 <= time.time() - now <= 0.7, "Pool timeout not respected" + + total = time.time() - now + assert 0.3 <= total <= 0.9, ( + f"Pool timeout not respected, got {total} which " + "is not between .3 and .9 seconds" + ) @testing.requires.threading_with_mock @testing.requires.timing_intensive @@ -1251,14 +1256,14 @@ class QueuePoolTest(PoolTestBase): for t in threads: t.join(timeout=join_timeout) eq_( - dbapi.connect().operation.mock_calls, - [ - call("success_one"), - call("success_two"), - call("overflow_two"), - call("overflow_three"), - call("overflow_one"), - ], + set(c.args[0] for c in dbapi.connect().operation.mock_calls), + { + "success_one", + "success_two", + "overflow_two", + "overflow_three", + "overflow_one", + }, ) @testing.requires.threading_with_mock -- 2.47.3