diff options
| author | Ramiro Morales <ramiro@users.noreply.github.com> | 2016-06-01 10:20:57 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-01 09:21:17 -0400 |
| commit | 777bc8f7d660147a40b61195d2e9cfa8d9750f09 (patch) | |
| tree | 710bafca1603013e239c28d1d24e8a22ac22fa0c /tests | |
| parent | bad894d5b82d91eb1d0c45bbd6efc9e34413dcd0 (diff) | |
[1.10.x] Fixed #26692 -- Relaxed an i18n compilemessages test.
The actual non-ASCII character differs on Windows.
Backport of 71421e8f8766525e709397f14e100f2846849df0 from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/test_compilation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i18n/test_compilation.py b/tests/i18n/test_compilation.py index 50c868ec7a..a65fcacda1 100644 --- a/tests/i18n/test_compilation.py +++ b/tests/i18n/test_compilation.py @@ -178,12 +178,12 @@ class CompilationErrorHandling(MessageCompilationTests): 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) |
