summaryrefslogtreecommitdiff
path: root/test/testlib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-08-10 05:26:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-08-10 05:26:16 +0000
commit50c4825b54502bdd73b531704b87d463c6edda88 (patch)
treefbc8f30dbdde252c504edd82e590f0eead315d64 /test/testlib
parentc20f8b1cfe30d5000e7bcf49c3ad031ce127f7df (diff)
downloadsqlalchemy-50c4825b54502bdd73b531704b87d463c6edda88.tar.gz
merged r5018 from 0.4 branch, but using contextual_connect() (will fix in 0.4 too)
Diffstat (limited to 'test/testlib')
-rw-r--r--test/testlib/engines.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testlib/engines.py b/test/testlib/engines.py
index 73ac80632..3df98d4fc 100644
--- a/test/testlib/engines.py
+++ b/test/testlib/engines.py
@@ -87,7 +87,10 @@ class ReconnectFixture(object):
def reconnecting_engine(url=None, options=None):
url = url or config.db_url
dbapi = config.db.dialect.dbapi
- engine = testing_engine(url, {'module':ReconnectFixture(dbapi)})
+ if not options:
+ options = {}
+ options['module'] = ReconnectFixture(dbapi)
+ engine = testing_engine(url, options)
engine.test_shutdown = engine.dialect.dbapi.shutdown
return engine