#12151: UnicodeEncodeError from django.contrib.comments.views.utils line 41.
----------------------------------------------+-----------------------------
Reporter: mikl | Owner: nobody
Status: new | Milestone: 1.2
Component: django.contrib.comments | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------------+-----------------------------
Comment (by thejaswi_puthraya):
Eric, thanks for the comments. I have combined the tests and the patch.
The tests now act as a regression and check if the exception is raised
after the patch has been applied. I have a question regarding the test.
After the patch has been applied, we need to check that the exception is
not raised. Is there a counterpart for ``assertRaises`` to help in such
scenarios? I am handling it in the way below
{{{
try:
self.assertRaises(ValueError, someCallable)
except AssertionError:
pass
}}}
I couldn't think of anything better.
--
Ticket URL: <http://code.djangoproject.com/ticket/12151#comment:9>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.