diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:48:08 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:48:08 +0000 |
| commit | 7d9de178e724573c1326ee2c2bf4f0b8b15b6c62 (patch) | |
| tree | 699dc8b630763035aa735d1fb6ef6425c5c947a7 /tests/regressiontests/middleware_exceptions | |
| parent | 2ef52d0ce20da72e2728fa7d7cdb129935e26ac8 (diff) | |
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
Diffstat (limited to 'tests/regressiontests/middleware_exceptions')
| -rw-r--r-- | tests/regressiontests/middleware_exceptions/tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/regressiontests/middleware_exceptions/tests.py b/tests/regressiontests/middleware_exceptions/tests.py index 2f950a0c4a..00c7d8b59f 100644 --- a/tests/regressiontests/middleware_exceptions/tests.py +++ b/tests/regressiontests/middleware_exceptions/tests.py @@ -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): |
