Skip to content

Commit

Permalink
Fixed #14920 -- Fixed some test failures caused by caching contenttyp…
Browse files Browse the repository at this point in the history
…es that were loaded during a contenttype fixture test. Thanks to Karen for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Dec 19, 2010
1 parent fbc2f0a commit 059d920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions django/contrib/auth/tests/permissions.py
Expand Up @@ -11,6 +11,12 @@




class TestAuthPermissions(TestCase): class TestAuthPermissions(TestCase):
def tearDown(self):
# These tests mess with content types, but content type lookups
# are cached, so we need to make sure the effects of this test
# are cleaned up.
contenttypes_models.ContentType.objects.clear_cache()

def test_permission_register_order(self): def test_permission_register_order(self):
"""Test that the order of registered permissions doesn't break""" """Test that the order of registered permissions doesn't break"""
# Changeset 14413 introduced a regression in the ordering of # Changeset 14413 introduced a regression in the ordering of
Expand Down

0 comments on commit 059d920

Please sign in to comment.