diff options
| author | Tim Graham <timograham@gmail.com> | 2015-12-04 17:53:15 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-04 17:53:15 -0500 |
| commit | 93be2f7dea51f7a063d9114660f5f1028a849cf0 (patch) | |
| tree | 408ba9187a505f3cc97d878ab172800f6cffebf6 | |
| parent | 479ba5add23c119387baa60d5dce3a4e17d1b15b (diff) | |
Refs #25677 -- Skipped an i18n test on older gettext versions.
| -rw-r--r-- | tests/i18n/test_compilation.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/i18n/test_compilation.py b/tests/i18n/test_compilation.py index 164fc68ed1..c2bd292b1d 100644 --- a/tests/i18n/test_compilation.py +++ b/tests/i18n/test_compilation.py @@ -10,6 +10,8 @@ import unittest from django.core.management import ( CommandError, call_command, execute_from_command_line, ) +from django.core.management.commands.makemessages import \ + Command as MakeMessagesCommand from django.core.management.utils import find_command from django.test import SimpleTestCase, override_settings from django.test.utils import captured_stderr, captured_stdout @@ -173,6 +175,9 @@ class CompilationErrorHandling(MessageCompilationTests): except CommandError as 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"): call_command('compilemessages', locale=['ko'], verbosity=0) |
