summaryrefslogtreecommitdiff
path: root/django/test/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/test/html.py')
-rw-r--r--django/test/html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/test/html.py b/django/test/html.py
index 2a1421bf17..143c3728be 100644
--- a/django/test/html.py
+++ b/django/test/html.py
@@ -5,7 +5,7 @@ Comparing two html documents.
from __future__ import unicode_literals
import re
-from django.utils.encoding import force_unicode
+from django.utils.encoding import force_text
from django.utils.html_parser import HTMLParser, HTMLParseError
from django.utils import six
@@ -25,7 +25,7 @@ class Element(object):
def append(self, element):
if isinstance(element, six.string_types):
- element = force_unicode(element)
+ element = force_text(element)
element = normalize_whitespace(element)
if self.children:
if isinstance(self.children[-1], six.string_types):