summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/testlib/engines.py7
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)