From 36e7efa4eb51db50f1aaa8a98ab89c3af59400ae Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Tue, 8 Jul 2008 02:48:13 +0000 Subject: [PATCH] Fixed borked testlib due to r4901. --- test/testlib/engines.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/testlib/engines.py b/test/testlib/engines.py index 181cb005da..69f5f18651 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) -- 2.47.3