From: Mike Bayer Date: Tue, 31 Mar 2015 03:29:39 +0000 (-0400) Subject: - use an ordered dict so that queries are deterministic X-Git-Tag: rel_1_0_0b5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4318edf9bb3e08a9e59a2ff1270d69fc21fd0c93;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - use an ordered dict so that queries are deterministic --- diff --git a/test/orm/test_eager_relations.py b/test/orm/test_eager_relations.py index d701cdbfcf..e085f44a60 100644 --- a/test/orm/test_eager_relations.py +++ b/test/orm/test_eager_relations.py @@ -2080,10 +2080,10 @@ class InnerJoinSplicingTest(fixtures.MappedTest, testing.AssertsCompiledSQL): mapper(A, cls.tables.a, properties={ 'bs': relationship(B) }) - mapper(B, cls.tables.b, properties={ - 'c1s': relationship(C1, order_by=cls.tables.c1.c.id), - 'c2s': relationship(C2, order_by=cls.tables.c2.c.id) - }) + mapper(B, cls.tables.b, properties=odict([ + ('c1s', relationship(C1, order_by=cls.tables.c1.c.id)), + ('c2s', relationship(C2, order_by=cls.tables.c2.c.id)) + ])) mapper(C1, cls.tables.c1, properties={ 'd1s': relationship(D1, order_by=cls.tables.d1.c.id) })