Permalink
Browse files

Fixed #20432 -- Test failure in admin_views.

The failure was triggered by a cache leak.
  • Loading branch information...
1 parent 566e284 commit 340115200f459d02e9a3e61c9704653215e185d5 @jacobb jacobb committed with aaugustin May 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/contrib/auth/tests/test_management.py
@@ -7,6 +7,7 @@
from django.contrib.auth.models import User
from django.contrib.auth.tests.test_custom_user import CustomUser
from django.contrib.auth.tests.utils import skipIfCustomUser
+from django.contrib.contenttypes.models import ContentType
from django.core.management import call_command
from django.core.management.base import CommandError
from django.core.management.validation import get_validation_errors
@@ -195,6 +196,7 @@ def setUp(self):
def tearDown(self):
models.Permission._meta.permissions = self._original_permissions
+ ContentType.objects.clear_cache()
def test_duplicated_permissions(self):
"""

0 comments on commit 3401152

Please sign in to comment.