diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-29 21:24:40 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-29 21:25:28 +0100 |
commit | 38ce41103fecf58418163b19403608988a291b56 (patch) | |
tree | cffc9d2a26fff2ad79c24f0d7b63694f58499d0b /tests/proxy_models | |
parent | 8cfcd801c4b2e6402c1c814f64db99a5b7501170 (diff) | |
download | django-38ce41103fecf58418163b19403608988a291b56.tar.gz |
Used Apps.clear_cache() in tests that alter the app registry.
Diffstat (limited to 'tests/proxy_models')
-rw-r--r-- | tests/proxy_models/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/proxy_models/tests.py b/tests/proxy_models/tests.py index fe294aeb1e..0f2b5349be 100644 --- a/tests/proxy_models/tests.py +++ b/tests/proxy_models/tests.py @@ -175,7 +175,7 @@ class ProxyModelTests(TestCase): finally: apps.app_configs['proxy_models'].models = _old_models apps.all_models['proxy_models'] = _old_models - apps.get_models.cache_clear() + apps.clear_cache() def test_myperson_manager(self): Person.objects.create(name="fred") |