]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use a set here also
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Oct 2013 23:03:21 +0000 (19:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Oct 2013 23:03:21 +0000 (19:03 -0400)
test/orm/test_subquery_relations.py

index c1b6e5eeaf2a6331e852b8a26a213c7f05154909..ef6649c3be8dfe116a028adb4a7d8fa8b54e5e9f 100644 (file)
@@ -1703,10 +1703,10 @@ class SubqueryloadDistinctTest(fixtures.DeclarativeMappedTest,
         result = s.execute(q3)
         rows = result.fetchall()
         if expect_distinct:
-            eq_(rows, [
+            eq_(set(tuple(t) for t in rows), set([
                 (1, u'/1.jpg', 1, 1),
                 (2, u'/2.jpg', 1, 1),
-            ])
+            ]))
         else:
             # oracle might not order the way we expect here
             eq_(set(tuple(t) for t in rows), set([