Fixed crash in i18n tests skip condition if gettext isn't installed.

This commit is contained in:
Tim Graham 2017-06-29 13:02:03 -04:00
parent 6e228d0b65
commit 0b00a8988b
1 changed files with 1 additions and 1 deletions

View File

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