summaryrefslogtreecommitdiff
path: root/tests/app_loading/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app_loading/tests.py')
-rw-r--r--tests/app_loading/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/app_loading/tests.py b/tests/app_loading/tests.py
index 1499115386..d8a837c2f6 100644
--- a/tests/app_loading/tests.py
+++ b/tests/app_loading/tests.py
@@ -8,9 +8,7 @@ from django.test.utils import extend_sys_path
class EggLoadingTest(SimpleTestCase):
def setUp(self):
self.egg_dir = "%s/eggs" % os.path.dirname(__file__)
-
- def tearDown(self):
- apps.clear_cache()
+ self.addCleanup(apps.clear_cache)
def test_egg1(self):
"""Models module can be loaded from an app in an egg"""