Commits

Anonymous committed 5205553

[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.

Comments (0)

Files changed (1)

django/contrib/contenttypes/tests.py

     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):
         """