Final pass of running the test against --bisect produces this:
======================================================================
FAIL: test_group_permission_performance (admin_views.tests.GroupAdminTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jacob/git/django/tests/admin_views/tests.py", line 3660, in
test_group_permission_performance
self.assertEqual(response.status_code, 200)
File "/Users/jacob/git/django/django/test/testcases.py", line 181, in
__exit__
executed, self.num
AssertionError: 7 queries executed, 8 expected
----------------------------------------------------------------------
Ran 190 tests in 6.069s
FAILED (failures=1, skipped=2)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
***** Problem found in second half. Bisecting again...
***** Source of error: django.contrib.auth
--
Ticket URL: <https://code.djangoproject.com/ticket/20432>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
The missing query is
{{{
{'sql': 'QUERY = \'SELECT "django_content_type"."id",
"django_content_type"."name", "django_content_type"."app_label",
"django_content_type"."model" FROM "django_content_type" WHERE
("django_content_type"."model" = %s AND "django_content_type"."app_label"
= %s )\' - PARAMS = (\'group\', \'auth\')', 'time': '0.000'},
}}}
ContentTypeManager caches get_for_model() queries. Another test caches the
Group content type.
--
Ticket URL: <https://code.djangoproject.com/ticket/20432#comment:1>
* status: new => closed
* owner: => Aymeric Augustin <aymeric.augustin@…>
* resolution: => fixed
Comment:
In [changeset:"340115200f459d02e9a3e61c9704653215e185d5"]:
{{{
#!CommitTicketReference repository=""
revision="340115200f459d02e9a3e61c9704653215e185d5"
Fixed #20432 -- Test failure in admin_views.
The failure was triggered by a cache leak.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20432#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"7cd3f1c29595d1da7f37d29e7c3bc6a7a314cd1d"]:
{{{
#!CommitTicketReference repository=""
revision="7cd3f1c29595d1da7f37d29e7c3bc6a7a314cd1d"
Fixed cache state dependence for assertNumQueries in
test_group_permission_performance.
Refs #20432 and #23746.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20432#comment:3>