Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14920 -- Fixed some test failures caused by caching contenttyp…

…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...
commit 059d9205d40243117730aba4baea1373834e57d2 1 parent fbc2f0a
@freakboy3742 freakboy3742 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 django/contrib/auth/tests/permissions.py
View
6 django/contrib/auth/tests/permissions.py
@@ -11,6 +11,12 @@
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):
"""Test that the order of registered permissions doesn't break"""
# Changeset 14413 introduced a regression in the ordering of
Please sign in to comment.
Something went wrong with that request. Please try again.