summaryrefslogtreecommitdiff
path: root/tests/template_tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/utils.py')
-rw-r--r--tests/template_tests/utils.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/template_tests/utils.py b/tests/template_tests/utils.py
index cbc452c808..187d259f36 100644
--- a/tests/template_tests/utils.py
+++ b/tests/template_tests/utils.py
@@ -4,7 +4,6 @@ import os
from django.template.engine import Engine
from django.test.utils import override_settings
from django.utils._os import upath
-from django.utils.encoding import python_2_unicode_compatible
from django.utils.safestring import mark_safe
ROOT = os.path.dirname(os.path.abspath(upath(__file__)))
@@ -165,7 +164,6 @@ class SilentAttrClass(object):
b = property(b)
-@python_2_unicode_compatible
class UTF8Class:
"Class whose __str__ returns non-ASCII data on Python 2"
def __str__(self):
@@ -173,13 +171,11 @@ class UTF8Class:
# These two classes are used to test auto-escaping of unicode output.
-@python_2_unicode_compatible
class UnsafeClass:
def __str__(self):
return 'you & me'
-@python_2_unicode_compatible
class SafeClass:
def __str__(self):
return mark_safe('you > me')