diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-07 10:09:41 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-07 10:09:41 -0400 |
commit | 3ca8b453088ac6fb815e2f39c9a705b49bfb188c (patch) | |
tree | efd74a0b90d051abe7e5871a2868c29cdbece397 /test/engine/test_reconnect.py | |
parent | bb32b59cd4e3477402c44d70ef6b5a12827bb429 (diff) | |
download | sqlalchemy-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_reconnect.py')
-rw-r--r-- | test/engine/test_reconnect.py | 8 |
1 files changed, 0 insertions, 8 deletions
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()], []], |