mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
[1.8.x] Skipped tests from refs #24168 on Python 3.2.
This commit is contained in:
parent
f87457a460
commit
c65c8f5696
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user