Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Python 3.2 compatiblity by removing unicode literals.

  • Loading branch information...
commit 209de62d220baa3b4c7db582349a7a3765901a68 1 parent 6c06ada
@charettes charettes authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/defaultfilters/tests.py
View
12 tests/defaultfilters/tests.py
@@ -326,17 +326,17 @@ def test_urlize(self):
# Check urlize correctly include quotation marks in links - #20364
self.assertEqual(urlize('before "hi@example.com" afterwards'),
- u'before "<a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
+ 'before "<a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
self.assertEqual(urlize('before hi@example.com" afterwards'),
- u'before <a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
+ 'before <a href="mailto:hi@example.com">hi@example.com</a>" afterwards')
self.assertEqual(urlize('before "hi@example.com afterwards'),
- u'before "<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
+ 'before "<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
self.assertEqual(urlize('before \'hi@example.com\' afterwards'),
- u'before \'<a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
+ 'before \'<a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
self.assertEqual(urlize('before hi@example.com\' afterwards'),
- u'before <a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
+ 'before <a href="mailto:hi@example.com">hi@example.com</a>\' afterwards')
self.assertEqual(urlize('before \'hi@example.com afterwards'),
- u'before \'<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
+ 'before \'<a href="mailto:hi@example.com">hi@example.com</a> afterwards')
# Check urlize copes with commas following URLs in quotes - see #20364
self.assertEqual(urlize('Email us at "hi@example.com", or phone us at +xx.yy'),
Please sign in to comment.
Something went wrong with that request. Please try again.