mirror of
https://github.com/django/django.git
synced 2025-08-02 01:53:15 +00:00
Fixed #27857 -- Dropped support for Python 3.4.
This commit is contained in:
parent
a80903b711
commit
cfff2af02b
20 changed files with 37 additions and 116 deletions
|
@ -2,7 +2,6 @@ import base64
|
|||
import os
|
||||
import shutil
|
||||
import string
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from datetime import timedelta
|
||||
|
@ -733,10 +732,9 @@ class SessionMiddlewareTests(TestCase):
|
|||
# A deleted cookie header looks like:
|
||||
# Set-Cookie: sessionid=; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
|
||||
self.assertEqual(
|
||||
'Set-Cookie: {}={}; expires=Thu, 01-Jan-1970 00:00:00 GMT; '
|
||||
'Set-Cookie: {}=""; expires=Thu, 01-Jan-1970 00:00:00 GMT; '
|
||||
'Max-Age=0; Path=/'.format(
|
||||
settings.SESSION_COOKIE_NAME,
|
||||
'""' if sys.version_info >= (3, 5) else '',
|
||||
),
|
||||
str(response.cookies[settings.SESSION_COOKIE_NAME])
|
||||
)
|
||||
|
@ -763,10 +761,9 @@ class SessionMiddlewareTests(TestCase):
|
|||
# expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0;
|
||||
# Path=/example/
|
||||
self.assertEqual(
|
||||
'Set-Cookie: {}={}; Domain=.example.local; expires=Thu, '
|
||||
'Set-Cookie: {}=""; Domain=.example.local; expires=Thu, '
|
||||
'01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/example/'.format(
|
||||
settings.SESSION_COOKIE_NAME,
|
||||
'""' if sys.version_info >= (3, 5) else '',
|
||||
),
|
||||
str(response.cookies[settings.SESSION_COOKIE_NAME])
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue