#16366: 
contrib.auth.tests.context_processors.AuthContextProcessorTests.test_session_not_accessed
fails when project loads other middleware that access the session.
-------------------------------------+-------------------------------------
     Reporter:  jsdalton             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.auth         |                  Version:  SVN
     Severity:  Normal               |               Resolution:
     Keywords:  test                 |             Triage Stage:  Ready for
    Has patch:  1                    |  checkin
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by ryankask):

 * stage:  Accepted => Ready for checkin


Comment:

 The previous patch was almost there.

 The problem was that `django.template.context` caches template context
 processors that it's seen so overriding the settings didn't have any
 effect.

 I've updated the patch to clear the cached context processors for those
 two tests.

 I also removed the `settings` import because it's not needed.

 It would be great if this could be slipped in before the release.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16366#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to