summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-30 23:29:39 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-30 23:29:39 -0400
commit4318edf9bb3e08a9e59a2ff1270d69fc21fd0c93 (patch)
tree568bd60beb7fa45b6cedec2c7abf6a09b0d402b1
parent1a56177c21cd45a25cc28ccda3af6d2c92810e50 (diff)
downloadsqlalchemy-4318edf9bb3e08a9e59a2ff1270d69fc21fd0c93.tar.gz
- use an ordered dict so that queries are deterministic
-rw-r--r--test/orm/test_eager_relations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/orm/test_eager_relations.py b/test/orm/test_eager_relations.py
index d701cdbfc..e085f44a6 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)
})