Skip to content

Commit d3e6d16

Browse files
committed
Try a fix for Python 3 on the tests
1 parent e5a3402 commit d3e6d16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tagging/tests/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,12 @@ def test_update_tags_exotic_characters(self):
355355
self.assertEqual(tags[0].name, '你好')
356356

357357
def test_unicode_tagged_object(self):
358-
self.dead_parrot.state = u"dëad"
358+
self.dead_parrot.state = "dëad"
359359
self.dead_parrot.save()
360-
Tag.objects.update_tags(self.dead_parrot, u'föo')
360+
Tag.objects.update_tags(self.dead_parrot, 'föo')
361361
items = TaggedItem.objects.all()
362362
self.assertEqual(len(items), 1)
363-
self.assertEqual(six.text_type(items[0]), u"dëad [föo]")
363+
self.assertEqual(six.text_type(items[0]), "dëad [föo]")
364364

365365
def test_update_tags_with_none(self):
366366
# start off in a known, mildly interesting state

0 commit comments

Comments
 (0)