diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-07-14 18:24:40 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-07-14 20:37:56 +0200 |
| commit | 3e71f6544feca490211e88db4f449dfdb7acce39 (patch) | |
| tree | 064e7c6c5628776ed736d3610ce707520f805ec3 /tests | |
| parent | 8ef78b81654ebcf19a1fc241e2b1ede35100096b (diff) | |
Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file names
Thanks Tim Graham for the review.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/test_extraction.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 811edc15f5..6312456e50 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -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') |
