[1.8.x] Skipped tests from refs #24168 on Python 3.2.

This commit is contained in:
Tim Graham 2015-02-03 08:15:24 -05:00
parent f87457a460
commit c65c8f5696
1 changed files with 7 additions and 3 deletions

View File

@ -22,9 +22,13 @@ from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.encoding import force_str
from django.utils.translation import deactivate
try:
import jinja2
except ImportError:
# Jinja2 doesn't run on Python 3.2 because it uses u-prefixed unicode strings.
if sys.version_info[:2] != (3, 2):
try:
import jinja2
except ImportError:
jinja2 = None
else:
jinja2 = None