summaryrefslogtreecommitdiff
path: root/tests/template_backends
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-01 14:28:53 -0500
committerTim Graham <timograham@gmail.com>2015-01-01 14:28:53 -0500
commit40ccef16cb699ff66a9d4163cc195c3a3b28c5ba (patch)
tree9ee714ba15d709054a971c0c92cc5b13def65bdf /tests/template_backends
parentf60c35cddc33d12a8c9c33ff086521cf3f350fb7 (diff)
downloaddjango-40ccef16cb699ff66a9d4163cc195c3a3b28c5ba.tar.gz
Silenced an ImportWarning in the template_backends tests.
Diffstat (limited to 'tests/template_backends')
-rw-r--r--tests/template_backends/test_jinja2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/template_backends/test_jinja2.py b/tests/template_backends/test_jinja2.py
index 8c0b8fc8f4..f8cbc047c1 100644
--- a/tests/template_backends/test_jinja2.py
+++ b/tests/template_backends/test_jinja2.py
@@ -1,3 +1,7 @@
+# Since this package contains a "jinja2" directory, this is required to
+# silence an ImportWarning warning on Python 2.
+from __future__ import absolute_import
+
import sys
from unittest import skipIf