From 7e97f4f510b2972c867ae7674fc40134413c16ab Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Tue, 11 Dec 2012 16:25:47 +0100 Subject: [PATCH] Fixed an order dependant test failure. --- tests/regressiontests/queries/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/queries/tests.py b/tests/regressiontests/queries/tests.py index 2dbe75fd24..eea5fead55 100644 --- a/tests/regressiontests/queries/tests.py +++ b/tests/regressiontests/queries/tests.py @@ -1028,12 +1028,12 @@ class Queries4Tests(BaseQuerysetTest): def test_ticket14876(self): q1 = Report.objects.filter(Q(creator__isnull=True) | Q(creator__extra__info='e1')) q2 = Report.objects.filter(Q(creator__isnull=True)) | Report.objects.filter(Q(creator__extra__info='e1')) - self.assertQuerysetEqual(q1, ["", ""]) + self.assertQuerysetEqual(q1, ["", ""], ordered=False) self.assertEqual(str(q1.query), str(q2.query)) q1 = Report.objects.filter(Q(creator__extra__info='e1') | Q(creator__isnull=True)) q2 = Report.objects.filter(Q(creator__extra__info='e1')) | Report.objects.filter(Q(creator__isnull=True)) - self.assertQuerysetEqual(q1, ["", ""]) + self.assertQuerysetEqual(q1, ["", ""], ordered=False) self.assertEqual(str(q1.query), str(q2.query)) q1 = Item.objects.filter(Q(creator=self.a1) | Q(creator__report__name='r1')).order_by()