Author: russellm
Date: 2010-12-19 07:01:51 -0600 (Sun, 19 Dec 2010)
New Revision: 14985
Modified:
django/trunk/django/contrib/auth/tests/permissions.py
Log:
Fixed #14920 -- Fixed some test failures caused by caching contenttypes that
were loaded during a contenttype fixture test. Thanks to Karen for the report.
Modified: django/trunk/django/contrib/auth/tests/permissions.py
===================================================================
--- django/trunk/django/contrib/auth/tests/permissions.py 2010-12-19
02:01:01 UTC (rev 14984)
+++ django/trunk/django/contrib/auth/tests/permissions.py 2010-12-19
13:01:51 UTC (rev 14985)
@@ -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
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.