diff options
| author | Michael Trier <mtrier@gmail.com> | 2008-07-08 02:48:13 +0000 |
|---|---|---|
| committer | Michael Trier <mtrier@gmail.com> | 2008-07-08 02:48:13 +0000 |
| commit | 36e7efa4eb51db50f1aaa8a98ab89c3af59400ae (patch) | |
| tree | 4b3928e22835e207d05fd2304fb54e0a67cb82af | |
| parent | cec5947b5ba09f430d683625e695d64e09210ef1 (diff) | |
| download | sqlalchemy-36e7efa4eb51db50f1aaa8a98ab89c3af59400ae.tar.gz | |
Fixed borked testlib due to r4901.
| -rw-r--r-- | test/testlib/engines.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/testlib/engines.py b/test/testlib/engines.py index 181cb005d..69f5f1865 100644 --- a/test/testlib/engines.py +++ b/test/testlib/engines.py @@ -1,6 +1,5 @@ import sys, types, weakref -from sqlalchemy import create_engine -from testlib import config, testing +from testlib import config from testlib.compat import set, _function_named, deque class ConnectionKiller(object): @@ -135,7 +134,9 @@ def utf8_engine(url=None, options=None): def mock_engine(db=None): """Provides a mocking engine based on the current testing.db.""" - dbi = db or testing.db + from sqlalchemy import create_engine + + dbi = db or config.db buffer = [] def executor(sql, *a, **kw): buffer.append(sql) |
