From: Mike Bayer Date: Wed, 1 Apr 2015 23:41:26 +0000 (-0400) Subject: - use odict here for test determinism X-Git-Tag: rel_1_0_0b5~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cae4f262b2faff18cbc06331a20e265b3b6c328;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - use odict here for test determinism --- diff --git a/test/orm/test_eager_relations.py b/test/orm/test_eager_relations.py index 278fb61a9c..f532901f2b 100644 --- a/test/orm/test_eager_relations.py +++ b/test/orm/test_eager_relations.py @@ -2268,13 +2268,15 @@ class InnerJoinSplicingTest(fixtures.MappedTest, testing.AssertsCompiledSQL): weird_selectable = b_table.outerjoin(c1_table) - b_np = mapper(B, weird_selectable, non_primary=True, properties={ - 'c_id': c1_table.c.id, - 'b_value': b_table.c.value, - # note we need to make this fixed with lazy=False until - # [ticket:3348] is resolved - 'c1s': relationship(C1, lazy=False, innerjoin=True) - }) + b_np = mapper( + B, weird_selectable, non_primary=True, properties=odict([ + # note we need to make this fixed with lazy=False until + # [ticket:3348] is resolved + ('c1s', relationship(C1, lazy=False, innerjoin=True)), + ('c_id', c1_table.c.id), + ('b_value', b_table.c.value), + ]) + ) a_mapper = inspect(A) a_mapper.add_property(