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,12 +375,13 @@ class SessionMiddlewareTests(unittest.TestCase):
|
|||
|
||||
# Handle the response through the middleware
|
||||
response = middleware.process_response(request, response)
|
||||
#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):
|
||||
|
||||
backend = CookieSession
|
||||
|
|
Loading…
Reference in New Issue