rohitjain-rj / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

The testsuite fails if run with python 2.6 #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The testsuite fails for me if i use python2.6. It works fine with python in
version 2.5

Here is the stacktrace:

======================================================================
FAIL: test_tag_d_validation (tagging.tests.tests.TestTagFieldInForms)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/phxx/projects/django-tagging/namespaced/tagging/tests/tests.py",
line 897, in test_tag_d_validation
    self.assertEquals(unicode(ve), u"[u'Each tag may be no more than 50
characters long.']")
AssertionError: u'' != u"[u'Each tag may be no more than 50 characters long.']"

----------------------------------------------------------------------

This failure is fixed by changing the line 897 in tagging/tests/tests.py to:

            self.assertEquals(unicode(list(ve.messages)), u"[u'Each tag may
be no more than 50 characters long.']")

The change also works well with python2.5 for me.

Original issue reported on code.google.com by phxx...@gmail.com on 8 Oct 2009 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by bros...@gmail.com on 4 Nov 2009 at 5:51

GoogleCodeExporter commented 9 years ago
Fixed in r168.

Original comment by bros...@gmail.com on 4 Nov 2009 at 6:27