mirror of
https://github.com/django/django.git
synced 2025-07-28 23:54:02 +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
|
@ -5,7 +5,7 @@ import errno
|
|||
import os
|
||||
import socket
|
||||
import sys
|
||||
from http.client import HTTPConnection
|
||||
from http.client import HTTPConnection, RemoteDisconnected
|
||||
from urllib.error import HTTPError
|
||||
from urllib.parse import urlencode
|
||||
from urllib.request import urlopen
|
||||
|
@ -14,11 +14,6 @@ from django.test import LiveServerTestCase, override_settings
|
|||
|
||||
from .models import Person
|
||||
|
||||
try:
|
||||
from http.client import RemoteDisconnected
|
||||
except ImportError: # Python 3.4
|
||||
from http.client import BadStatusLine as RemoteDisconnected
|
||||
|
||||
TEST_ROOT = os.path.dirname(__file__)
|
||||
TEST_SETTINGS = {
|
||||
'MEDIA_URL': '/media/',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue