Ticket #4955: test_client_py.patch

File test_client_py.patch, 876 bytes (added by snhorne@…, 17 years ago)

django.test.client

  • test/client.py

     
    4646        finally:
    4747            dispatcher.send(signal=signals.request_finished)
    4848
    49         return response
     49        return request, response
    5050
    5151def store_rendered_templates(store, signal, sender, template, context):
    5252    "A utility function for storing templates and contexts that are rendered"
     
    165165        # Capture exceptions created by the handler
    166166        dispatcher.connect(self.store_exc_info, signal=got_request_exception)
    167167
    168         response = self.handler(environ)
     168        self.previous_request, response = self.handler(environ)
    169169
    170170        # Add any rendered template detail to the response
    171171        # If there was only one template rendered (the most likely case),
Back to Top