mirror of https://github.com/django/django.git
Fixed Python 2.5 test failure introduced in r17135.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0506facd86
commit
16e3636a1a
|
@ -375,11 +375,12 @@ class SessionMiddlewareTests(unittest.TestCase):
|
|||
|
||||
# Handle the response through the middleware
|
||||
response = middleware.process_response(request, response)
|
||||
self.assertFalse(
|
||||
response.cookies[settings.SESSION_COOKIE_NAME]['httponly'])
|
||||
self.assertNotIn('httponly',
|
||||
str(response.cookies[settings.SESSION_COOKIE_NAME]['httponly']))
|
||||
|
||||
#if it isn't in the cookie, that's fine (Python 2.5).
|
||||
if 'httponly' in settings.SESSION_COOKIE_NAME:
|
||||
self.assertFalse(
|
||||
response.cookies[settings.SESSION_COOKIE_NAME]['httponly'])
|
||||
self.assertNotIn('httponly',
|
||||
str(response.cookies[settings.SESSION_COOKIE_NAME]['httponly']))
|
||||
|
||||
class CookieSessionTests(SessionTestsMixin, TestCase):
|
||||
|
||||
|
|
Loading…
Reference in New Issue