diff mbox

TransactionTestCases are broken by django.contrib.contenttypes in 1.2.5

Message ID 4D878F47.6040107@linaro.org
State Accepted
Headers show

Commit Message

Zygmunt Krynicki March 21, 2011, 5:47 p.m. UTC
This was reported upstream:
http://code.djangoproject.com/ticket/15622

And applied:
http://code.djangoproject.com/changeset/15867
http://code.djangoproject.com/changeset/15868

Thanks
ZK
diff mbox

Patch

=== modified file 'django/contrib/contenttypes/tests.py'
--- django/contrib/contenttypes/tests.py	2011-03-16 17:43:12 +0000
+++ django/contrib/contenttypes/tests.py	2011-03-16 17:47:30 +0000
@@ -20,6 +20,7 @@ 
         db.reset_queries()
 
     def tearDown(self):
+        ContentType.objects.clear_cache()
         settings.DEBUG = self.old_DEBUG
         Site._meta.installed = self.old_Site_meta_installed