toastdriven/django-tastypie — pull request #356 by pelme (2012-02-06 19:30:01+00:00)
Title: Allow exceptions to bubble when views are called from tests

Tastypie overrides Djangos error handling. Normally, when a Django view raises an uncaught exception in a test case, an Error is reported, and the complete traceback is printed after the test run.

Tastypie handles this in a special way, and responds with a properly serialized HTTP 500 response for internal errors.

However, this is not very useful when running tests. After the test run, it is much easier to debug the actual error if tastypie does not return it's special HTTP 500 response, but instead let the exception bubble up and make the test error.