summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_basic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-11-28 11:28:27 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-11-28 11:28:27 -0500
commitac5d11afb3fa601d3194bbe8c087c568608985fa (patch)
tree230a130be30174e68b7cc985fe210a223512e82b /test/orm/inheritance/test_basic.py
parent59a177a4c0bd69863e011e0f1c40e5b87fff99d3 (diff)
downloadsqlalchemy-ac5d11afb3fa601d3194bbe8c087c568608985fa.tar.gz
- push polymorphic_on not recognized warning to an exception, [ticket:1875]
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r--test/orm/inheritance/test_basic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py
index e7461842f..c57f1d095 100644
--- a/test/orm/inheritance/test_basic.py
+++ b/test/orm/inheritance/test_basic.py
@@ -97,7 +97,7 @@ class PolymorphicOnNotLocalTest(_base.MappedTest):
polymorphic_identity=0)
assert_raises_message(
- sa_exc.SAWarning,
+ sa_exc.InvalidRequestError,
"Could not map polymorphic_on column 'x' to the mapped table - "
"polymorphic loads will not function properly",
go
@@ -121,7 +121,7 @@ class PolymorphicOnNotLocalTest(_base.MappedTest):
with_polymorphic=('*', t1t2_join_2),
polymorphic_identity=0)
assert_raises_message(
- sa_exc.SAWarning,
+ sa_exc.InvalidRequestError,
"Could not map polymorphic_on column 'x' to the mapped table - "
"polymorphic loads will not function properly",
go