diff --git a/django/contrib/flatpages/tests/views.py b/django/contrib/flatpages/tests/views.py index bb94d1e375..a9004209b7 100644 --- a/django/contrib/flatpages/tests/views.py +++ b/django/contrib/flatpages/tests/views.py @@ -18,7 +18,7 @@ class FlatpageViewTests(TestCase): 'templates' ), ) - settings.DEBUG = True + def tearDown(self): settings.MIDDLEWARE_CLASSES = self.old_MIDDLEWARE_CLASSES settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS