From 73ffbc0d17c9ce492087c9ed41a96ce6589fbf92 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 19 Oct 2017 16:06:17 +0100 Subject: [PATCH] {} => set() --- wagtail/wagtailsearch/tests/elasticsearch_common_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/wagtailsearch/tests/elasticsearch_common_tests.py b/wagtail/wagtailsearch/tests/elasticsearch_common_tests.py index c44e022c68..e4c526529a 100644 --- a/wagtail/wagtailsearch/tests/elasticsearch_common_tests.py +++ b/wagtail/wagtailsearch/tests/elasticsearch_common_tests.py @@ -73,7 +73,7 @@ class ElasticsearchCommonSearchBackendTests(object): # Even though they both start with "Java", this should not match the "JavaScript" books results = self.backend.search("JavaBeans", models.Book) - self.assertEqual(set(r.title for r in results), {}) + self.assertEqual(set(r.title for r in results), set()) def test_search_with_hyphen(self): """