]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix non-deterministic ordering point
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Oct 2013 14:35:54 +0000 (10:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Oct 2013 14:35:54 +0000 (10:35 -0400)
test/orm/test_subquery_relations.py

index 176a3007853e86a6255ba3d48da80445fd69c30f..c1b6e5eeaf2a6331e852b8a26a213c7f05154909 100644 (file)
@@ -1708,12 +1708,13 @@ class SubqueryloadDistinctTest(fixtures.DeclarativeMappedTest,
                 (2, u'/2.jpg', 1, 1),
             ])
         else:
-            eq_(rows, [
+            # oracle might not order the way we expect here
+            eq_(set(tuple(t) for t in rows), set([
                 (1, u'/1.jpg', 1, 1),
                 (2, u'/2.jpg', 1, 1),
                 (1, u'/1.jpg', 1, 1),
                 (2, u'/2.jpg', 1, 1),
-            ])
+            ]))
 
 
         movies = q.all()