mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Used Apps.clear_cache() in tests that alter the app registry.
This commit is contained in:
@@ -21,7 +21,7 @@ class EggLoadingTest(TestCase):
|
||||
|
||||
def tearDown(self):
|
||||
apps.all_models['app_loading'] = self._old_models
|
||||
apps.get_models.cache_clear()
|
||||
apps.clear_cache()
|
||||
|
||||
sys.path = self.old_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user