mirror of
https://github.com/django/django.git
synced 2025-10-21 15:52:54 +00:00
Fixed #32144 -- Made makemessages remove temporary files when locale path doesn't exist.
This commit is contained in:
parent
8feb2a49fa
commit
dfa7781033
3 changed files with 8 additions and 0 deletions
|
@ -765,6 +765,8 @@ class CustomLayoutExtractionTests(ExtractorTests):
|
|||
)
|
||||
with self.assertRaisesMessage(management.CommandError, msg):
|
||||
management.call_command('makemessages', locale=[LOCALE], verbosity=0)
|
||||
# Working files are cleaned up on an error.
|
||||
self.assertFalse(os.path.exists('./app_no_locale/test.html.py'))
|
||||
|
||||
def test_project_locale_paths(self):
|
||||
self._test_project_locale_paths(os.path.join(self.test_dir, 'project_locale'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue