#3452: Need mechanism for disabling exception supression when running in test
context
---------------------------+------------------------------------------------
Reporter:  Simon Willison  |       Owner:  adrian          
  Status:  new             |   Component:  Unit test system
 Version:  SVN             |    Keywords:                  
   Stage:  Unreviewed      |   Has_patch:  0               
---------------------------+------------------------------------------------
 BaseHandler.get_response is currently an exception black hole - if an
 exception occurs anywhere in a Django application there appears to be no
 circumstance in which it will not be turned in to an HttpResponse of some
 sort - the DEBUG setting merely influences if the error message is highly
 descriptive (in debug mode) or user-friendly.
 
 This is great for 99% of situations, but is an absolute nuisance when
 using in-process testing against Django, for example using
 django.test.client.Client.
 
 It would be really useful if there was a way of telling Django to raise
 any exceptions caught in that last naked 'except' clause (line 108), for
 purposes of unit testing.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3452>
Django Code <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