diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-20 12:29:22 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-20 12:29:22 +0200 |
| commit | 85cd458944c16769a707921619e94ccc3dfbf7bd (patch) | |
| tree | 82fbfa1758a23338ce0f9b9d9bf3be7657da0ff2 /tests/regressiontests/utils/html.py | |
| parent | 5d560dcb981400451d69a834f7c6a9090f5e5221 (diff) | |
Removed u prefixes on unicode strings.
They break Python 3.
Diffstat (limited to 'tests/regressiontests/utils/html.py')
| -rw-r--r-- | tests/regressiontests/utils/html.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/regressiontests/utils/html.py b/tests/regressiontests/utils/html.py index 389ae8ec75..fe40d4eaae 100644 --- a/tests/regressiontests/utils/html.py +++ b/tests/regressiontests/utils/html.py @@ -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): |
