Browse files

Fix Python 3.2 compatiblity by removing unicode literals.

  • Loading branch information...
1 parent 6c06ada commit 209de62d220baa3b4c7db582349a7a3765901a68 @charettes charettes committed Sep 26, 2013
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'),

0 comments on commit 209de62

Please sign in to comment.