summaryrefslogtreecommitdiff
path: root/tests/app_loading
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app_loading')
-rw-r--r--tests/app_loading/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/app_loading/tests.py b/tests/app_loading/tests.py
index e282306ec0..45f6cd6c31 100644
--- a/tests/app_loading/tests.py
+++ b/tests/app_loading/tests.py
@@ -77,8 +77,9 @@ class EggLoadingTest(TestCase):
error. Refs #17667.
"""
app_cache = AppCache()
- # Pretend we're the master app cache to test populate().
- app_cache.master = True
+ # Pretend we're the master app cache to test the population process.
+ app_cache._apps_loaded = False
+ app_cache._models_loaded = False
with override_settings(INSTALLED_APPS=('notexists',)):
with self.assertRaises(ImportError):
app_cache.get_model('notexists', 'nomodel')