From: Mike Bayer Date: Mon, 14 Oct 2013 14:35:54 +0000 (-0400) Subject: - fix non-deterministic ordering point X-Git-Tag: rel_0_9_0b1~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab38a67995738ccaa17ecbcdd35feace6adcfc16;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - fix non-deterministic ordering point --- diff --git a/test/orm/test_subquery_relations.py b/test/orm/test_subquery_relations.py index 176a300785..c1b6e5eeaf 100644 --- a/test/orm/test_subquery_relations.py +++ b/test/orm/test_subquery_relations.py @@ -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()