Fix exceptions for SQLAlchemy 0.8
Change-Id: Ib541ac9d6b397300e34ca8b65aad459b612858c3
This commit is contained in:
parent
c670d1d36a
commit
74ccf7a397
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user