summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-06-01 16:08:59 -0700
committerTim Graham <timograham@gmail.com>2017-06-01 19:08:59 -0400
commit2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 (patch)
tree65b8e60b858e4f073a04c2bbf976b8f43fe0cff6 /tests/syndication_tests
parentedee5a8de6afb34a9247de2bb73ab66397a6e573 (diff)
downloaddjango-2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929.tar.gz
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index 0563fd444c..28fe026414 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -41,7 +41,7 @@ class FeedTestCase(TestCase):
cls.a1 = Article.objects.create(title='My first article', entry=cls.e1)
def assertChildNodes(self, elem, expected):
- actual = set(n.nodeName for n in elem.childNodes)
+ actual = {n.nodeName for n in elem.childNodes}
expected = set(expected)
self.assertEqual(actual, expected)
@@ -52,7 +52,7 @@ class FeedTestCase(TestCase):
def assertCategories(self, elem, expected):
self.assertEqual(
- set(i.firstChild.wholeText for i in elem.childNodes if i.nodeName == 'category'),
+ {i.firstChild.wholeText for i in elem.childNodes if i.nodeName == 'category'},
set(expected)
)