From 189d9b16c8a011f5021fc89d991b007a43ad5f2b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 15 Nov 2017 09:37:18 -0500 Subject: [PATCH] [2.0.x] Fixed test failures due to ordering differences on PostgreSQL 10. Backport of 9bea555d06e0e585645053ae6ca9ac3dc8b899bd from master --- tests/postgres_tests/test_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/postgres_tests/test_search.py b/tests/postgres_tests/test_search.py index 5438a137075..944690692a3 100644 --- a/tests/postgres_tests/test_search.py +++ b/tests/postgres_tests/test_search.py @@ -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')