0
0
mirror of https://github.com/django/django.git synced 2024-11-29 14:46:18 +01:00

Fixed test failures due to ordering differences on PostgreSQL 10.

This commit is contained in:
Tim Graham 2017-11-15 09:37:18 -05:00
parent ee85ef8315
commit 9bea555d06

View File

@ -125,7 +125,7 @@ class MultipleFieldsTest(GrailTestData, PostgreSQLTestCase):
searched = Line.objects.annotate(
search=SearchVector('scene__setting', 'dialogue'),
).filter(search='Forest')
self.assertSequenceEqual(searched, self.verses)
self.assertCountEqual(searched, self.verses)
def test_non_exact_match(self):
searched = Line.objects.annotate(
@ -143,7 +143,7 @@ class MultipleFieldsTest(GrailTestData, PostgreSQLTestCase):
searched = Line.objects.annotate(
search=SearchVector('character__name', 'dialogue'),
).filter(search='minstrel')
self.assertSequenceEqual(searched, self.verses)
self.assertCountEqual(searched, self.verses)
searched = Line.objects.annotate(
search=SearchVector('scene__setting', 'dialogue'),
).filter(search='minstrelbravely')