Fix exceptions for SQLAlchemy 0.8

Change-Id: Ib541ac9d6b397300e34ca8b65aad459b612858c3
This commit is contained in:
Pádraig Brady 2013-07-11 22:01:32 -04:00 committed by Monty Taylor
parent c670d1d36a
commit 74ccf7a397
1 changed files with 2 additions and 2 deletions

View File

@ -560,7 +560,7 @@ class TestColumnChange(fixture.DB):
self.table.drop()
try:
self.table.create()
except sqlalchemy.exceptions.SQLError, e:
except sqlalchemy.exc.SQLError, e:
# SQLite: database schema has changed
if not self.url.startswith('sqlite://'):
raise
@ -569,7 +569,7 @@ class TestColumnChange(fixture.DB):
if self.table.exists():
try:
self.table.drop(self.engine)
except sqlalchemy.exceptions.SQLError,e:
except sqlalchemy.exc.SQLError,e:
# SQLite: database schema has changed
if not self.url.startswith('sqlite://'):
raise