cce8748935
from wen heping
31 lines
981 B
Plaintext
31 lines
981 B
Plaintext
$OpenBSD: patch-tests_test_options_py,v 1.1 2011/05/27 10:40:33 jasper Exp $
|
|
--- tests/test_options.py.orig Wed Sep 30 06:51:37 2009
|
|
+++ tests/test_options.py Thu May 26 12:22:50 2011
|
|
@@ -4,7 +4,7 @@ test options
|
|
|
|
from sqlalchemy import UniqueConstraint, create_engine, Column
|
|
from sqlalchemy.orm import scoped_session, sessionmaker
|
|
-from sqlalchemy.exceptions import SQLError, ConcurrentModificationError
|
|
+from sqlalchemy.exc import DBAPIError, ConcurrentModificationError
|
|
from elixir import *
|
|
|
|
class TestOptions(object):
|
|
@@ -225,7 +225,7 @@ class TestTableOptions(object):
|
|
raised = False
|
|
try:
|
|
session.commit()
|
|
- except SQLError:
|
|
+ except DBAPIError:
|
|
raised = True
|
|
|
|
assert raised
|
|
@@ -258,7 +258,7 @@ class TestTableOptions(object):
|
|
raised = False
|
|
try:
|
|
session.commit()
|
|
- except SQLError:
|
|
+ except DBAPIError:
|
|
raised = True
|
|
|
|
assert raised
|