Removed u prefixes on unicode strings.

They break Python 3.
This commit is contained in:
Aymeric Augustin 2012-07-20 12:29:22 +02:00
parent 5d560dcb98
commit 85cd458944
2 changed files with 6 additions and 6 deletions

View File

@ -81,7 +81,7 @@ class ARLocalFlavorTests(SimpleTestCase):
def test_ARCUITField(self): def test_ARCUITField(self):
error_format = ['Enter a valid CUIT in XX-XXXXXXXX-X or XXXXXXXXXXXX format.'] error_format = ['Enter a valid CUIT in XX-XXXXXXXX-X or XXXXXXXXXXXX format.']
error_invalid = ['Invalid CUIT.'] error_invalid = ['Invalid CUIT.']
error_legal_type = [u'Invalid legal type. Type must be 27, 20, 23 or 30.'] error_legal_type = ['Invalid legal type. Type must be 27, 20, 23 or 30.']
valid = { valid = {
'20-10123456-9': '20-10123456-9', '20-10123456-9': '20-10123456-9',
'20-10123456-9': '20-10123456-9', '20-10123456-9': '20-10123456-9',

View File

@ -36,13 +36,13 @@ class TestUtilsHtml(unittest.TestCase):
def test_format_html(self): def test_format_html(self):
self.assertEqual( self.assertEqual(
html.format_html(u"{0} {1} {third} {fourth}", html.format_html("{0} {1} {third} {fourth}",
u"< Dangerous >", "< Dangerous >",
html.mark_safe(u"<b>safe</b>"), html.mark_safe("<b>safe</b>"),
third="< dangerous again", third="< dangerous again",
fourth=html.mark_safe(u"<i>safe again</i>") fourth=html.mark_safe("<i>safe again</i>")
), ),
u"&lt; Dangerous &gt; <b>safe</b> &lt; dangerous again <i>safe again</i>" "&lt; Dangerous &gt; <b>safe</b> &lt; dangerous again <i>safe again</i>"
) )
def test_linebreaks(self): def test_linebreaks(self):