mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Used addCleanup() in tests where appropriate.
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user