Refs #25677 -- Fixed Python 2 i18n test failure on non-ASCII path.

This commit is contained in:
Tim Graham 2015-11-19 15:55:00 -05:00
parent 80bcbecd4a
commit db8763fb23
1 changed files with 1 additions and 1 deletions

View File

@ -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)