summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/polymorph.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-01-19 23:37:11 +0000
committerJason Kirtland <jek@discorporate.us>2008-01-19 23:37:11 +0000
commit4be99db15b7a62b37493c86da07bcc787f44a7df (patch)
treeb9d71342f22e307a08c38487d63c795039f10b96 /test/orm/inheritance/polymorph.py
parent21193cebe22f44982cb70ecd64743df63494b17d (diff)
downloadsqlalchemy-4be99db15b7a62b37493c86da07bcc787f44a7df.tar.gz
- Restored 2.3 compat. in lib/sqlalchemy
- Part one of test suite fixes to run on 2.3 Lots of failures still around sets; sets.Set differs from __builtin__.set particularly in the binops. We depend on set extensively now and may need to provide a corrected sets.Set subclass on 2.3.
Diffstat (limited to 'test/orm/inheritance/polymorph.py')
-rw-r--r--test/orm/inheritance/polymorph.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/orm/inheritance/polymorph.py b/test/orm/inheritance/polymorph.py
index 5f0e74fa3..faee63360 100644
--- a/test/orm/inheritance/polymorph.py
+++ b/test/orm/inheritance/polymorph.py
@@ -342,13 +342,13 @@ def generate_round_trip_test(include_base=False, lazy_relation=True, redefine_co
session.delete(c)
session.flush()
- test_roundtrip.__name__ = "test_%s%s%s%s%s" % (
- (lazy_relation and "lazy" or "eager"),
- (include_base and "_inclbase" or ""),
- (redefine_colprop and "_redefcol" or ""),
- (polymorphic_fetch != 'union' and '_' + polymorphic_fetch or (use_literal_join and "_litjoin" or "")),
- (use_outer_joins and '_outerjoins' or '')
- )
+ test_roundtrip = _function_named(
+ test_roundtrip, "test_%s%s%s%s%s" % (
+ (lazy_relation and "lazy" or "eager"),
+ (include_base and "_inclbase" or ""),
+ (redefine_colprop and "_redefcol" or ""),
+ (polymorphic_fetch != 'union' and '_' + polymorphic_fetch or (use_literal_join and "_litjoin" or "")),
+ (use_outer_joins and '_outerjoins' or '')))
setattr(RoundTripTest, test_roundtrip.__name__, test_roundtrip)
for include_base in [True, False]: