Skip to content

Commit

Permalink
Fixed #15622 -- Clear content type cache to avoid problems with subse…
Browse files Browse the repository at this point in the history
…quence TransactionTestCases. Thanks to zyga for the report

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Mar 17, 2011
1 parent b49ee91 commit 354aa94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/contrib/contenttypes/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def setUp(self):
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):
"""
Expand Down

0 comments on commit 354aa94

Please sign in to comment.