summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/engine/test_pool.py2
-rw-r--r--test/engine/test_reconnect.py8
2 files changed, 1 insertions, 9 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(
diff --git a/test/engine/test_reconnect.py b/test/engine/test_reconnect.py
index 8881620f7..df95798fd 100644
--- a/test/engine/test_reconnect.py
+++ b/test/engine/test_reconnect.py
@@ -357,8 +357,6 @@ class PrePingMockTest(fixtures.TestBase):
class MockReconnectTest(fixtures.TestBase):
- __requires__ = ("millisecond_monotonic_time",)
-
def setup(self):
self.dbapi = MockDBAPI()
@@ -427,14 +425,8 @@ class MockReconnectTest(fixtures.TestBase):
[[call()], []],
)
- # checkout makes use of the same connection record. in
- # get_connection(), recycle should be enabled because
- # the age of the connection is older than the time at which
- # the invalidation occurred.
conn = self.db.connect()
- # therefore the two connections should both have been closed
- # when we connected again.
eq_(
[c.close.mock_calls for c in self.dbapi.connections],
[[call()], [call()], []],