summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-07-14 18:24:40 +0200
committerClaude Paroz <claude@2xlibre.net>2016-07-14 20:39:58 +0200
commita74adb4c35a90f41e56bb97166a784e56835a56a (patch)
tree3b8d3b091e0bcd5d03cd979d67906da066fbfd61 /tests
parent5316ae7d4f03ceed268422cc9adcedbba0d6d7f4 (diff)
[1.9.x] Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file names
Thanks Tim Graham for the review. Backport of 3e71f6544feca490211e88db4f449dfdb7acce39 from master.
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/test_extraction.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index 8ca9bdd779..98e8e074cc 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -242,6 +242,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"""
os.chdir(self.test_dir)