summaryrefslogtreecommitdiff
path: root/tests/i18n
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/i18n
parentedee5a8de6afb34a9247de2bb73ab66397a6e573 (diff)
downloaddjango-2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929.tar.gz
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'tests/i18n')
-rw-r--r--tests/i18n/test_extraction.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index 731c29a978..f42aae1125 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -350,13 +350,13 @@ class BasicExtractorTests(ExtractorTests):
cmd.locale_paths = []
cmd.default_locale_path = os.path.join(self.test_dir, 'locale')
found_files = cmd.find_files(self.test_dir)
- found_exts = set([os.path.splitext(tfile.file)[1] for tfile in found_files])
+ found_exts = {os.path.splitext(tfile.file)[1] for tfile in found_files}
self.assertEqual(found_exts.difference({'.py', '.html', '.txt'}), set())
cmd.extensions = ['js']
cmd.domain = 'djangojs'
found_files = cmd.find_files(self.test_dir)
- found_exts = set([os.path.splitext(tfile.file)[1] for tfile in found_files])
+ found_exts = {os.path.splitext(tfile.file)[1] for tfile in found_files}
self.assertEqual(found_exts.difference({'.js'}), set())
@mock.patch('django.core.management.commands.makemessages.popen_wrapper')