mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed u prefixes on unicode strings.
They break Python 3.
This commit is contained in:
@@ -36,13 +36,13 @@ class TestUtilsHtml(unittest.TestCase):
|
||||
|
||||
def test_format_html(self):
|
||||
self.assertEqual(
|
||||
html.format_html(u"{0} {1} {third} {fourth}",
|
||||
u"< Dangerous >",
|
||||
html.mark_safe(u"<b>safe</b>"),
|
||||
html.format_html("{0} {1} {third} {fourth}",
|
||||
"< Dangerous >",
|
||||
html.mark_safe("<b>safe</b>"),
|
||||
third="< dangerous again",
|
||||
fourth=html.mark_safe(u"<i>safe again</i>")
|
||||
fourth=html.mark_safe("<i>safe again</i>")
|
||||
),
|
||||
u"< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>"
|
||||
"< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>"
|
||||
)
|
||||
|
||||
def test_linebreaks(self):
|
||||
|
||||
Reference in New Issue
Block a user