Skip to content

Commit

Permalink
Fixed #26692 -- Relaxed an i18n compilemessages test.
Browse files Browse the repository at this point in the history
The actual non-ASCII character differs on Windows.
  • Loading branch information
ramiro authored and timgraham committed Jun 1, 2016
1 parent db2a6b6 commit 71421e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/i18n/test_compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ def test_msgfmt_error_including_non_ascii(self):
try:
call_command('compilemessages', locale=['ko'], verbosity=0)
except CommandError as err:
self.assertIn("'�' cannot start a field name", six.text_type(err))
self.assertIn("' cannot start a field name", six.text_type(err))
else:
cmd = MakeMessagesCommand()
if cmd.gettext_version < (0, 18, 3):
raise unittest.SkipTest("python-brace-format is a recent gettext addition.")
with self.assertRaisesMessage(CommandError, "'�' cannot start a field name"):
with self.assertRaisesMessage(CommandError, "' cannot start a field name"):
call_command('compilemessages', locale=['ko'], verbosity=0)


Expand Down

0 comments on commit 71421e8

Please sign in to comment.