Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.X] Fixed an order dependant test failure.

Backport of 7e97f4f from master.
  • Loading branch information...
commit deb205b8ce560957167a6d0472d4ffca3a40abd9 1 parent 919fbe0
@apollo13 apollo13 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/queries/tests.py
View
4 tests/regressiontests/queries/tests.py
@@ -1028,12 +1028,12 @@ def setUp(self):
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, ["<Report: r1>", "<Report: r3>"])
+ self.assertQuerysetEqual(q1, ["<Report: r1>", "<Report: r3>"], 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, ["<Report: r1>", "<Report: r3>"])
+ self.assertQuerysetEqual(q1, ["<Report: r1>", "<Report: r3>"], 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()

0 comments on commit deb205b

Please sign in to comment.
Something went wrong with that request. Please try again.