diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-03-17 08:41:25 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-03-17 08:41:25 +0000 |
| commit | 354aa941b6f883a652ee005014579b26fd7542e6 (patch) | |
| tree | d90ce40234a479c2389aa9e4a2b2ef25cb6062e6 | |
| parent | b49ee91eb39e6008fed9d77c19b84362d3dd2b16 (diff) | |
Fixed #15622 -- Clear content type cache to avoid problems with subsequence TransactionTestCases. Thanks to zyga for the report
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/contenttypes/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/contenttypes/tests.py b/django/contrib/contenttypes/tests.py index 790193b289..b6b1c5099a 100644 --- a/django/contrib/contenttypes/tests.py +++ b/django/contrib/contenttypes/tests.py @@ -22,6 +22,7 @@ class ContentTypesTests(TestCase): def tearDown(self): settings.DEBUG = self.old_DEBUG Site._meta.installed = self.old_Site_meta_installed + ContentType.objects.clear_cache() def test_lookup_cache(self): """ |
