mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed crash in i18n tests skip condition if gettext isn't installed.
This commit is contained in:
parent
6e228d0b65
commit
0b00a8988b
@ -25,7 +25,7 @@ from .utils import POFileAssertionMixin, RunInTmpDirMixin, copytree
|
||||
LOCALE = 'de'
|
||||
has_xgettext = find_command('xgettext')
|
||||
gettext_version = MakeMessagesCommand().gettext_version if has_xgettext else None
|
||||
requires_gettext_019 = skipIf(gettext_version < (0, 19), 'gettext 0.19 required')
|
||||
requires_gettext_019 = skipIf(has_xgettext and gettext_version < (0, 19), 'gettext 0.19 required')
|
||||
|
||||
|
||||
@skipUnless(has_xgettext, 'xgettext is mandatory for extraction tests')
|
||||
|
Loading…
Reference in New Issue
Block a user