From 0627858ada32e13bafef74f9541dafd8c854ae25 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 13 Sep 2016 13:57:10 -0400 Subject: [PATCH] Fixed a couple ordering dependent tests on Oracle broken by refs #27203. --- tests/queries/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/queries/tests.py b/tests/queries/tests.py index d5edce65dee..993f846bfbb 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -1518,7 +1518,7 @@ class Queries4Tests(TestCase): ci2 = CategoryItem.objects.create(category=c0) ci3 = CategoryItem.objects.create(category=c1) - qs = CategoryItem.objects.filter(category__onetoonecategory__isnull=False) + qs = CategoryItem.objects.filter(category__onetoonecategory__isnull=False).order_by('pk') self.assertEqual(qs.count(), 2) self.assertSequenceEqual(qs, [ci2, ci3]) @@ -1566,7 +1566,7 @@ class Queries4Tests(TestCase): ci2 = CategoryItem.objects.create(category=c0) ci3 = CategoryItem.objects.create(category=c1) - qs = CategoryItem.objects.exclude(category__onetoonecategory__isnull=True) + qs = CategoryItem.objects.exclude(category__onetoonecategory__isnull=True).order_by('pk') self.assertEqual(qs.count(), 2) self.assertSequenceEqual(qs, [ci2, ci3])