summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-11-23 20:51:17 +0100
committerClaude Paroz <claude@2xlibre.net>2013-11-26 20:41:51 +0100
commit384816fccb6dfc7fc40f8059811341ba3572d9ff (patch)
tree2d2578f616a1f8aacd7265dc0757fbd9dfa64c67 /django
parent5725236c3ee4323203aa681cb54d1ff1d7f376df (diff)
Fixed #21448 -- Fixed test client logout with cookie-based sessions
Thanks Gunnar Scherf for the report and the suggested patch.
Diffstat (limited to 'django')
-rw-r--r--django/test/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/test/client.py b/django/test/client.py
index bf099e5b37..8c9a17564c 100644
--- a/django/test/client.py
+++ b/django/test/client.py
@@ -600,6 +600,7 @@ class Client(RequestFactory):
else:
request.session = engine.SessionStore()
logout(request)
+ self.cookies = SimpleCookie()
def _handle_redirects(self, response, **extra):
"Follows any redirects by requesting responses from the server using GET."