Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Commit a320450

Browse files
committed
BUG: Tagging test case unicode error
I only observed it in django-1.5 upgrade.
1 parent 52ad802 commit a320450

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scipy_central/tagging/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def test_adding_repeated_tag(self):
1313
"""
1414
# Always use ``get_or_create(...)`` rather than relying on
1515
# ``create(...)`` to return a valid tag.
16-
t1, _ = Tag.objects.get_or_create(name='testing tag')
17-
t2, _ = Tag.objects.get_or_create(name='testing tag')
16+
t1, _ = Tag.objects.get_or_create(name=u'testing tag')
17+
t2, _ = Tag.objects.get_or_create(name=u'testing tag')
1818
self.assertEqual(t1.id, t2.id)
1919

2020
def unicode_tags(self):
2121
self.assertRaises(ValidationError, Tag.objects.get_or_create,
22-
name='さようなら')
22+
name=u'さようなら')
2323

2424

2525
class TagParsing(TestCase):

0 commit comments

Comments
 (0)