]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
repair order by
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Apr 2013 19:46:07 +0000 (15:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Apr 2013 19:46:07 +0000 (15:46 -0400)
test/orm/test_joins.py

index 31f7ed5e74dcea7e0a9d122357b842d16ee42088..dc659d76aa6a5425a2607a8887eae41f459adab9 100644 (file)
@@ -2068,7 +2068,7 @@ class SelfReferentialM2MTest(fixtures.MappedTest):
 
         sess = create_session()
         eq_(sess.query(Node).filter(Node.children.any(Node.data == 'n3'
-            )).all(), [Node(data='n1'), Node(data='n2')])
+            )).order_by(Node.data).all(), [Node(data='n1'), Node(data='n2')])
 
     def test_contains(self):
         Node = self.classes.Node