#9978: logout() method in test.client.Client raising KeyError -------------------------------+-------------------------------------------- Reporter: igors | Owner: nobody Status: new | Milestone: Component: Testing framework | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -------------------------------+-------------------------------------------- I've noticed this logout() method raises !KeyError when I'm not authenticated.
I'm not sure it's a bug, but in my opinion it should fail silently. Catch the exception would solve it. [1] http://code.djangoproject.com/browser/django/trunk/django/test/client.py#L413 -- Ticket URL: <http://code.djangoproject.com/ticket/9978> 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 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 -~----------~----~----~----~------~----~------~--~---