summaryrefslogtreecommitdiff
path: root/test/orm/test_mapper.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-13 16:53:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-13 16:53:38 -0400
commit2937f94e4a05be5b8db268b47745157a143ca30e (patch)
treecbc5b1eb4dfdc1a1bef9a0eb592ea716f45bec1f /test/orm/test_mapper.py
parent37fad88b84db61fba0a09a1c76bcf95d055aa6e2 (diff)
downloadsqlalchemy-2937f94e4a05be5b8db268b47745157a143ca30e.tar.gz
- all tests pass
Diffstat (limited to 'test/orm/test_mapper.py')
-rw-r--r--test/orm/test_mapper.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/orm/test_mapper.py b/test/orm/test_mapper.py
index 9e6e7fbbf..a87c064cf 100644
--- a/test/orm/test_mapper.py
+++ b/test/orm/test_mapper.py
@@ -1269,7 +1269,8 @@ class MapperTest(_fixtures.FixtureTest, AssertsCompiledSQL):
def __getitem__(self, key):
return 'value'
- class UCComparator(sa.orm.PropComparator):
+ from sqlalchemy.orm.properties import ColumnProperty
+ class UCComparator(ColumnProperty.Comparator):
__hash__ = None
def method1(self):
@@ -1314,7 +1315,8 @@ class MapperTest(_fixtures.FixtureTest, AssertsCompiledSQL):
assert_raises_message(
AttributeError,
- "Neither 'extendedproperty' object nor 'UCComparator' object has an attribute 'nonexistent'",
+ "Neither 'extendedproperty' object nor 'UCComparator' "
+ "object has an attribute 'nonexistent'",
getattr, User.uc_name, 'nonexistent')
# test compile