From 8cb2cfdda5a9a913dc761eba48b56b7d2f4ce2e7 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 5 Feb 2015 21:26:54 +0100 Subject: [PATCH] [1.8.x] Called parent in SimpleTestCase.setUpClass/tearDownClass. Backport of 146dd7be8dad4cd6264d374b681256a8b0d5808b from master --- django/test/testcases.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/test/testcases.py b/django/test/testcases.py index 80e8d3aa4aa..2896631d476 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -146,6 +146,7 @@ class SimpleTestCase(unittest.TestCase): @classmethod def setUpClass(cls): + super(SimpleTestCase, cls).setUpClass() if cls._overridden_settings: cls._cls_overridden_context = override_settings(**cls._overridden_settings) cls._cls_overridden_context.enable() @@ -161,6 +162,7 @@ class SimpleTestCase(unittest.TestCase): if hasattr(cls, '_cls_overridden_context'): cls._cls_overridden_context.disable() delattr(cls, '_cls_overridden_context') + super(SimpleTestCase, cls).tearDownClass() def __call__(self, result=None): """