#9978: logout() method in test.client.Client raising KeyError
----------------------------------------+-----------------------------------
          Reporter:  igors              |         Owner:  ericholscher
            Status:  new                |     Milestone:              
         Component:  Testing framework  |       Version:  1.0         
        Resolution:                     |      Keywords:              
             Stage:  Accepted           |     Has_patch:  0           
        Needs_docs:  0                  |   Needs_tests:  0           
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Changes (by ericholscher):

  * owner:  nobody => ericholscher
  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 This is indeed a problem. If you log in and then log out, logout() doesn't
 cause an error. Only when you have never logged in and try to log out.

 Attached is a simple testcase and a one line fix to the logout() function
 simple checking to see if that key exists before trying to delete it.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9978#comment:1>
Django <http://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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to