Browse Source

Removed urllib2 reference in file storage tests

Claude Paroz 7 years ago
parent
commit
8e960c5aba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/file_storage/tests.py

+ 3 - 2
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)