fix python2.4 error

This commit is contained in:
iElectric 2010-04-29 17:23:34 +02:00
parent 8469a4709d
commit 6e32274aec
2 changed files with 3 additions and 1 deletions

View File

@ -155,7 +155,8 @@ def with_engine(f, *a, **kw):
engine = construct_engine(url, **kw)
try:
return f(*a, engine=engine, **kw)
kw['engine'] = engine
return f(*a, **kw)
finally:
if isinstance(engine, Engine):
log.debug('Disposing SQLAlchemy engine %s', engine)

View File

@ -10,6 +10,7 @@ from sqlalchemy.pool import StaticPool
from migrate.changeset import SQLA_06
from migrate.versioning.util import Memoize
from tests.fixture.base import Base
from tests.fixture.pathed import Pathed