From 8e960c5aba70d834f54b0bc66f2fb5e922a35b41 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 27 Apr 2018 14:02:39 +0200 Subject: [PATCH] Removed urllib2 reference in file storage tests --- tests/file_storage/tests.py | 5 +++-- 1 file 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)