Skip to content

Commit 0627858

Browse files
committed
Fixed a couple ordering dependent tests on Oracle broken by refs #27203.
1 parent 7148929 commit 0627858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/queries/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ def test_ticket15316_one2one_filter_false(self):
15181518
ci2 = CategoryItem.objects.create(category=c0)
15191519
ci3 = CategoryItem.objects.create(category=c1)
15201520

1521-
qs = CategoryItem.objects.filter(category__onetoonecategory__isnull=False)
1521+
qs = CategoryItem.objects.filter(category__onetoonecategory__isnull=False).order_by('pk')
15221522
self.assertEqual(qs.count(), 2)
15231523
self.assertSequenceEqual(qs, [ci2, ci3])
15241524

@@ -1566,7 +1566,7 @@ def test_ticket15316_one2one_exclude_true(self):
15661566
ci2 = CategoryItem.objects.create(category=c0)
15671567
ci3 = CategoryItem.objects.create(category=c1)
15681568

1569-
qs = CategoryItem.objects.exclude(category__onetoonecategory__isnull=True)
1569+
qs = CategoryItem.objects.exclude(category__onetoonecategory__isnull=True).order_by('pk')
15701570
self.assertEqual(qs.count(), 2)
15711571
self.assertSequenceEqual(qs, [ci2, ci3])
15721572

0 commit comments

Comments
 (0)