Skip to content

Commit 9b760f8

Browse files
committed
Fixed issue #220 — coerce Exception object using str for consistency on 2.5 and 2.6. Thanks phxx.de for the report.
git-svn-id: https://django-tagging.googlecode.com/svn/trunk@168 83e7428b-ec2a-0410-86f2-bf466d0e5e72
1 parent 225be04 commit 9b760f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagging/tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def test_tag_d_validation(self):
894894
try:
895895
t.clean('foo qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbn bar')
896896
except forms.ValidationError, ve:
897-
self.assertEquals(unicode(ve), u"[u'Each tag may be no more than 50 characters long.']")
897+
self.assertEquals(str(ve), "[u'Each tag may be no more than 50 characters long.']")
898898
except Exception, e:
899899
raise e
900900
else:

0 commit comments

Comments
 (0)