Commit 16e3636a authored by Paul McMillan's avatar Paul McMillan
Browse files

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
parent 0506facd
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -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