diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-03-14 08:40:35 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-03-14 08:40:35 +0000 |
| commit | 43cb17bbe50cb72ef9f10a9d959b1adc4d01c304 (patch) | |
| tree | 4bc41fed49c527394970b08cd9fee8bbd6e04bae /tests/modeltests/proxy_model_inheritance | |
| parent | 21fb1c59c311253af1388ec92139ff1bb687a091 (diff) | |
Added cleanup code to the proxy_model_inheritance tests. Refs #12286, #16329.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/proxy_model_inheritance')
| -rw-r--r-- | tests/modeltests/proxy_model_inheritance/tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py index 82f4ea6821..a048e1aabe 100644 --- a/tests/modeltests/proxy_model_inheritance/tests.py +++ b/tests/modeltests/proxy_model_inheritance/tests.py @@ -13,7 +13,7 @@ import sys from django.conf import settings from django.core.management import call_command -from django.db.models.loading import load_app +from django.db.models.loading import cache, load_app from django.test import TransactionTestCase from django.test.utils import override_settings @@ -28,6 +28,12 @@ class ProxyModelInheritanceTests(TransactionTestCase): def tearDown(self): sys.path = self.old_sys_path + del cache.app_store[cache.app_labels['app1']] + del cache.app_store[cache.app_labels['app2']] + del cache.app_labels['app1'] + del cache.app_labels['app2'] + del cache.app_models['app1'] + del cache.app_models['app2'] def test_table_exists(self): call_command('syncdb', verbosity=0) |
