From: Mike Bayer Date: Sun, 11 Jan 2009 23:34:36 +0000 (+0000) Subject: added an order by X-Git-Tag: rel_0_5_1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2c302d03ad1d59fe575d919ca848e676379b30b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added an order by --- diff --git a/test/orm/inheritance/concrete.py b/test/orm/inheritance/concrete.py index d2b035eca5..4cf7f098d3 100644 --- a/test/orm/inheritance/concrete.py +++ b/test/orm/inheritance/concrete.py @@ -451,9 +451,10 @@ class PropertyInheritanceTest(_base.MappedTest): assert c1.many_a == set([a1, b1, b2]) sess.expire_all() + def go(): eq_( - sess.query(C).options(eagerload(C.many_a)).all(), + sess.query(C).options(eagerload(C.many_a)).order_by(C.id).all(), [C(many_a=set([a1, b1, b2])), C(many_a=set([a2]))] ) self.assert_sql_count(testing.db, go, 1)