mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user