Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-22 Thread Michael Radziej
Afternoon: > As for the resetting of __builtin__._, what is the expected value > during the execution of django.contrib.auth.forms? Is it the standard > gettext or django.utils.translation.gettext_lazy? It's django.utils.translation.gettext. Michael -- noris network AG - Deutschherrnstraße 15-

Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-22 Thread Afternoon
Also, I forgot to say, a quick grep of the Django code reveals that the db rollback code is currently the only listener for the got_request_exception signal. I've moved the signal dispatch line outside of the if statement in the base handler with the effect that it is now always dispatched as you

Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-21 Thread Michael Radziej
Hi, Michael Radziej wrote: > Since I'm not using the current test client (I needed testing before > this was available and resorted to py.test in a hackish way), could you > check this a bit and eventually file another ticket if I'm right? Coming to think about this, I'm not sure whether this sh

Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-21 Thread Michael Radziej
Hi Afternoon and all, you wrote in the ticket that somehow, that the _ function gets replaced by an Article. This is probably a bug in the existing test client due to a strange interaction with doctests. See: http://mail.python.org/pipermail/python-list/2004-February/250829.html "Setting __bui

Re: Handling exceptions raised while processing requests from django.test.client.Client

2007-01-21 Thread Afternoon
I've attached a new patch and got to the bottom of the test case that failed. I'm not 100% comfortable with my diagnosis and remedy however and I'm happy to look at it again if the solution is problematic. If a ticket master is able to take a quick look at the patch and the notes that would be gre

Re: Handling exceptions raised while processing requests from django.test.client.Client

2006-12-19 Thread Russell Keith-Magee
On 12/19/06, Afternoon <[EMAIL PROTECTED]> wrote: Currently any exception raised by a view or other request machinery while handling a request from the test client is hidden from the requesting test case by Django's exception views (500, error debug). I have created a patch and a ticket for an

Handling exceptions raised while processing requests from django.test.client.Client

2006-12-18 Thread Afternoon
Currently any exception raised by a view or other request machinery while handling a request from the test client is hidden from the requesting test case by Django's exception views (500, error debug). I have created a patch and a ticket for an enhancement which reraises exceptions with the origin