mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #17054 -- Ensured the test suite runs when gettext isn't available, after r16981.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -2,6 +2,9 @@ import os
|
||||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
can_run_extraction_tests = False
|
||||
can_run_compilation_tests = False
|
||||
|
||||
def find_command(cmd, path=None, pathext=None):
|
||||
if path is None:
|
||||
path = os.environ.get('PATH', []).split(os.pathsep)
|
||||
@@ -36,8 +39,8 @@ if xgettext_cmd:
|
||||
if match:
|
||||
xversion = (int(match.group('major')), int(match.group('minor')))
|
||||
if xversion >= (0, 15):
|
||||
from extraction import *
|
||||
can_run_extraction_tests = True
|
||||
del p
|
||||
|
||||
if find_command('msgfmt'):
|
||||
from compilation import *
|
||||
can_run_compilation_tests = True
|
||||
|
||||
Reference in New Issue
Block a user