summaryrefslogtreecommitdiff
path: root/tests/file_storage
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2018-04-27 14:02:39 +0200
committerClaude Paroz <claude@2xlibre.net>2018-04-27 14:02:39 +0200
commit8e960c5aba70d834f54b0bc66f2fb5e922a35b41 (patch)
tree1715e051d55269e0304eed76eab8ab5def1f555f /tests/file_storage
parenta9189d27efccdee0b5e8b84f69f9041176055769 (diff)
downloaddjango-8e960c5aba70d834f54b0bc66f2fb5e922a35b41.tar.gz
Removed urllib2 reference in file storage tests
Diffstat (limited to 'tests/file_storage')
-rw-r--r--tests/file_storage/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py
index 3d232bb176..33dc699ab4 100644
--- a/tests/file_storage/tests.py
+++ b/tests/file_storage/tests.py
@@ -943,9 +943,10 @@ class FileLikeObjectTestCase(LiveServerTestCase):
def tearDown(self):
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 + '/')
f = File(file_like_object)