#12151: UnicodeEncodeError from django.contrib.comments.views.utils line 41.
----------------------------------------------+-----------------------------
          Reporter:  mikl                     |         Owner:  nobody
            Status:  closed                   |     Milestone:  1.2   
         Component:  django.contrib.comments  |       Version:  SVN   
        Resolution:  fixed                    |      Keywords:        
             Stage:  Accepted                 |     Has_patch:  1     
        Needs_docs:  0                        |   Needs_tests:  0     
Needs_better_patch:  0                        |  
----------------------------------------------+-----------------------------
Comment (by kmtracey):

 Replying to [comment:9 thejaswi_puthraya]:
 > Is there a counterpart for ``assertRaises`` ...?

 If you want to ensure code doesn't raise an exception, just execute it and
 proceed on in the test testing whatever might be appropriate. Any
 exception raised outside of an assertRaises will cause the test to fail.
 See the committed test, which fails before the code change and passes
 after. (I could not quite follow what you tried to do in the test in the
 patch, and it also did not fail before the proposed code change, so
 whatever it was was not effective.)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12151#comment:12>
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.

Reply via email to