summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-01-24 21:35:55 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-01-24 21:35:55 +0000
commit99b7dd4512364f1f1f11212fd87355ea098a93a6 (patch)
tree910bc3099afd3e13ef6da753d037ce6fe06d127e /test/engine/test_pool.py
parenta11a5f5af6b0c76d6f07a7ed3dd8eff7dda95ed6 (diff)
parentf9c9f6453a7ed4b9ad01f6d4d808f5cd273f8290 (diff)
downloadsqlalchemy-99b7dd4512364f1f1f11212fd87355ea098a93a6.tar.gz
Merge "Provide public accessor for Pool.timeout()."
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r--test/engine/test_pool.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
index feff61b88..45e136260 100644
--- a/test/engine/test_pool.py
+++ b/test/engine/test_pool.py
@@ -774,6 +774,12 @@ class QueuePoolTest(PoolTestBase):
lazy_gc()
assert not pool._refs
+ def test_timeout_accessor(self):
+ expected_timeout = 123
+ p = self._queuepool_fixture(
+ timeout=expected_timeout)
+ eq_(p.timeout(), expected_timeout)
+
@testing.requires.timing_intensive
def test_timeout(self):
p = self._queuepool_fixture(pool_size=3, max_overflow=0, timeout=2)