diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-06-01 16:08:59 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-06-01 19:08:59 -0400 |
commit | 2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 (patch) | |
tree | 65b8e60b858e4f073a04c2bbf976b8f43fe0cff6 /tests/i18n | |
parent | edee5a8de6afb34a9247de2bb73ab66397a6e573 (diff) | |
download | django-2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929.tar.gz |
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'tests/i18n')
-rw-r--r-- | tests/i18n/test_extraction.py | 4 |
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') |