mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Used addCleanup() in tests where appropriate.
This commit is contained in:
@@ -1904,9 +1904,7 @@ class CustomExceptionReporterFilter(SafeExceptionReporterFilter):
|
||||
class CustomExceptionReporterFilterTests(SimpleTestCase):
|
||||
def setUp(self):
|
||||
get_default_exception_reporter_filter.cache_clear()
|
||||
|
||||
def tearDown(self):
|
||||
get_default_exception_reporter_filter.cache_clear()
|
||||
self.addCleanup(get_default_exception_reporter_filter.cache_clear)
|
||||
|
||||
def test_setting_allows_custom_subclass(self):
|
||||
self.assertIsInstance(
|
||||
|
||||
Reference in New Issue
Block a user