From db8763fb239137e9f750d26df221483a8ae5c97c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 19 Nov 2015 15:55:00 -0500 Subject: [PATCH] Refs #25677 -- Fixed Python 2 i18n test failure on non-ASCII path. --- tests/i18n/test_compilation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i18n/test_compilation.py b/tests/i18n/test_compilation.py index 8508ecb855..164fc68ed1 100644 --- a/tests/i18n/test_compilation.py +++ b/tests/i18n/test_compilation.py @@ -62,7 +62,7 @@ class PoFileTests(MessageCompilationTests): try: call_command('compilemessages', locale=['en'], stderr=err_buffer, verbosity=0) err = err_buffer.getvalue() - self.assertIn("not writable location", err) + self.assertIn("not writable location", force_text(err)) finally: os.chmod(mo_file_en, old_mode)