mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file names
Thanks Tim Graham for the review.
This commit is contained in:
@@ -209,6 +209,10 @@ class BasicExtractorTests(ExtractorTests):
|
||||
self.assertIn("UnicodeDecodeError: skipped file not_utf8.txt in .",
|
||||
force_text(out.getvalue()))
|
||||
|
||||
def test_unicode_file_name(self):
|
||||
open(os.path.join(self.test_dir, 'vidéo.txt'), 'a').close()
|
||||
management.call_command('makemessages', locale=[LOCALE], verbosity=0)
|
||||
|
||||
def test_extraction_warning(self):
|
||||
"""test xgettext warning about multiple bare interpolation placeholders"""
|
||||
shutil.copyfile('./code.sample', './code_sample.py')
|
||||
|
||||
Reference in New Issue
Block a user