summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-03-17 08:42:10 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-03-17 08:42:10 +0000
commitcbf9688b128cb910dc301a76c97a0a817ebf5b3e (patch)
treeb0a6d0bd2df6465c4fcae7f8fb17b13bd5e437a8
parent1d64c8a539b11998662c351d2ba847e794c2066b (diff)
downloaddjango-cbf9688b128cb910dc301a76c97a0a817ebf5b3e.tar.gz
[1.2.X] Fixed #15622 -- Clear content type cache to avoid problems with subsequence TransactionTestCases. Thanks to zyga for the report
Backport of r15867 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/contenttypes/tests.py1
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):
"""