From 4318edf9bb3e08a9e59a2ff1270d69fc21fd0c93 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 30 Mar 2015 23:29:39 -0400 Subject: [PATCH] - use an ordered dict so that queries are deterministic --- test/orm/test_eager_relations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }) -- 2.47.3