Removed unneeded u prefixes
This commit is contained in:
parent
41eb70f762
commit
f08fa5b555
|
@ -40,7 +40,7 @@ class TestNoInitialDataLoading(TransactionTestCase):
|
|||
# Test presence of fixture (flush called by TransactionTestCase)
|
||||
self.assertQuerysetEqual(
|
||||
Book.objects.all(), [
|
||||
u'Achieving self-awareness of Python programs'
|
||||
'Achieving self-awareness of Python programs'
|
||||
],
|
||||
lambda a: a.name
|
||||
)
|
||||
|
|
|
@ -101,7 +101,7 @@ class ModelWithStringPrimaryKey(models.Model):
|
|||
return self.string_pk
|
||||
|
||||
def get_absolute_url(self):
|
||||
return u'/dummy/%s/' % self.string_pk
|
||||
return '/dummy/%s/' % self.string_pk
|
||||
|
||||
|
||||
class Color(models.Model):
|
||||
|
|
|
@ -486,7 +486,7 @@ class FieldsTests(SimpleTestCase):
|
|||
Refs #.
|
||||
"""
|
||||
f = RegexField('^\w+$')
|
||||
self.assertEqual(u'éèøçÎÎ你好', f.clean(u'éèøçÎÎ你好'))
|
||||
self.assertEqual('éèøçÎÎ你好', f.clean('éèøçÎÎ你好'))
|
||||
|
||||
def test_change_regex_after_init(self):
|
||||
f = RegexField('^[a-z]+$')
|
||||
|
|
Loading…
Reference in New Issue