diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-10-26 01:29:56 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-10-26 01:29:56 +0000 |
commit | bc714d614df349ba4ef35a2863ffe6e191881b26 (patch) | |
tree | 9e6c08a62822b9b3da6dab3d526458bb316ba496 /test/engine/test_parseconnect.py | |
parent | 4a7f889d8a99a228f4693cd6eaba896182d15408 (diff) | |
download | sqlalchemy-bc714d614df349ba4ef35a2863ffe6e191881b26.tar.gz |
test fixes
Diffstat (limited to 'test/engine/test_parseconnect.py')
-rw-r--r-- | test/engine/test_parseconnect.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/engine/test_parseconnect.py b/test/engine/test_parseconnect.py index 90c0969be..daa2dd5dc 100644 --- a/test/engine/test_parseconnect.py +++ b/test/engine/test_parseconnect.py @@ -112,7 +112,7 @@ pool_timeout=10 'sqlalchemy.echo':'true' } - e = engine_from_config(config, module=dbapi) + e = engine_from_config(config, module=dbapi, _initialize=False) assert e.pool._recycle == 50 assert e.url == url.make_url('postgresql://scott:tiger@somehost/test?fooz=somevalue') assert e.echo is True @@ -176,11 +176,15 @@ pool_timeout=10 assert e.pool._recycle == 50 # these args work for QueuePool - e = create_engine('postgresql://', max_overflow=8, pool_timeout=60, poolclass=tsa.pool.QueuePool, module=mock_dbapi) + e = create_engine('postgresql://', + max_overflow=8, pool_timeout=60, + poolclass=tsa.pool.QueuePool, module=mock_dbapi, + _initialize=False) # but not SingletonThreadPool assert_raises(TypeError, create_engine, 'sqlite://', max_overflow=8, pool_timeout=60, - poolclass=tsa.pool.SingletonThreadPool, module=mock_sqlite_dbapi) + poolclass=tsa.pool.SingletonThreadPool, module=mock_sqlite_dbapi, + _initialize=False) class MockDBAPI(object): def __init__(self, **kwargs): |