summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-10-07 10:09:41 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-10-07 10:09:41 -0400
commit3ca8b453088ac6fb815e2f39c9a705b49bfb188c (patch)
treeefd74a0b90d051abe7e5871a2868c29cdbece397 /test/engine/test_pool.py
parentbb32b59cd4e3477402c44d70ef6b5a12827bb429 (diff)
downloadsqlalchemy-3ca8b453088ac6fb815e2f39c9a705b49bfb188c.tar.gz
Revert "Use monotonic time for pool age measurement"
This reverts commit 0220b58917b5a979891b5765f6ac5095e0368489. I completely misread https://www.python.org/dev/peps/pep-0418/#rationale and the accuracy of monotonic() is *worse* on windows than time.time(), which is bizarre. Change-Id: I2d571e268a2051bea68736507773d3904403af9e
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r--test/engine/test_pool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
index e01609b17..eb705da61 100644
--- a/test/engine/test_pool.py
+++ b/test/engine/test_pool.py
@@ -1241,7 +1241,7 @@ class QueuePoolTest(PoolTestBase):
)
def test_recycle(self):
- with patch("sqlalchemy.pool.base.monotonic_time") as mock:
+ with patch("sqlalchemy.pool.base.time.time") as mock:
mock.return_value = 10000
p = self._queuepool_fixture(