summaryrefslogtreecommitdiff
path: root/test/engine/parseconnect.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-07-29 00:42:49 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-07-29 00:42:49 +0000
commit33fa7019fbb3ed5c2d3fbe22bb552988fdd4c61f (patch)
tree5d89d75c87571ca52fc6ff79b7fa0b9dde20688f /test/engine/parseconnect.py
parent9f100231798d83f2bf4a53494eb5199864a0094d (diff)
downloadsqlalchemy-33fa7019fbb3ed5c2d3fbe22bb552988fdd4c61f.tar.gz
- removed auto_close_cursors and disallow_open_cursors arguments from Pool;
reduces overhead as cursors are normally closed by ResultProxy and Connection.
Diffstat (limited to 'test/engine/parseconnect.py')
-rw-r--r--test/engine/parseconnect.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/engine/parseconnect.py b/test/engine/parseconnect.py
index 3e186275d..fef3742cf 100644
--- a/test/engine/parseconnect.py
+++ b/test/engine/parseconnect.py
@@ -136,10 +136,9 @@ class CreateEngineTest(PersistTest):
def testpoolargs(self):
"""test that connection pool args make it thru"""
- e = create_engine('postgres://', creator=None, pool_recycle=-1, echo_pool=None, auto_close_cursors=False, disallow_open_cursors=True, module=MockDBAPI())
- assert e.pool.auto_close_cursors is False
- assert e.pool.disallow_open_cursors is True
-
+ e = create_engine('postgres://', creator=None, pool_recycle=50, echo_pool=None, module=MockDBAPI())
+ assert e.pool._recycle == 50
+
# these args work for QueuePool
e = create_engine('postgres://', max_overflow=8, pool_timeout=60, poolclass=pool.QueuePool, module=MockDBAPI())