mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #6094 again -- fixed broken unit tests. Thanks, isagalaev
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -8,15 +8,13 @@ class RequestMiddleware(object):
|
||||
raise Exception('Exception')
|
||||
|
||||
class MiddlewareExceptionTest(TestCase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(MiddlewareExceptionTest, self).__init__(*args, **kwargs)
|
||||
def setUp(self):
|
||||
self.exceptions = []
|
||||
got_request_exception.connect(self._on_request_exception)
|
||||
|
||||
def setUp(self):
|
||||
self.client.handler.load_middleware()
|
||||
|
||||
def tearDown(self):
|
||||
got_request_exception.disconnect(self._on_request_exception)
|
||||
self.exceptions = []
|
||||
|
||||
def _on_request_exception(self, sender, request, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user