mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed urllib2 reference in file storage tests
This commit is contained in:
@@ -943,9 +943,10 @@ class FileLikeObjectTestCase(LiveServerTestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
shutil.rmtree(self.temp_dir)
|
shutil.rmtree(self.temp_dir)
|
||||||
|
|
||||||
def test_urllib2_urlopen(self):
|
def test_urllib_request_urlopen(self):
|
||||||
"""
|
"""
|
||||||
Test the File storage API with a file like object coming from urllib2.urlopen()
|
Test the File storage API with a file-like object coming from
|
||||||
|
urllib.request.urlopen().
|
||||||
"""
|
"""
|
||||||
file_like_object = urlopen(self.live_server_url + '/')
|
file_like_object = urlopen(self.live_server_url + '/')
|
||||||
f = File(file_like_object)
|
f = File(file_like_object)
|
||||||
|
|||||||
Reference in New Issue
Block a user