]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixes for 3.14t on github actions
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Oct 2025 20:52:21 +0000 (16:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Oct 2025 20:52:54 +0000 (16:52 -0400)
Change-Id: Ibc99e3dfdfd2a516c336090570df64875d97b653

test/engine/test_pool.py

index 151b7633db15e9de3d27d92c656f0098de0b34ee..9115af0dcb85e36b8b29b182b931246d6724ba56 100644 (file)
@@ -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