]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-77476: Remove urllib HTTP test (#139502)
authorVictor Stinner <vstinner@python.org>
Thu, 2 Oct 2025 15:30:08 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Oct 2025 15:30:08 +0000 (17:30 +0200)
Remove test_sites_no_connection_close() which is skipped since 2018
(commit 36d56ea826caffbeac0fc0c6d90248b80516e33c).

Lib/test/test_urllib2net.py

index e6a1847690849536be6bdba673029b05b567e513..0c5f99ec18bf43994392e2f972c4990e339e60a1 100644 (file)
@@ -218,27 +218,6 @@ class OtherNetworkTests(unittest.TestCase):
             opener.open(request)
             self.assertEqual(request.get_header('User-agent'),'Test-Agent')
 
-    @unittest.skip('XXX: http://www.imdb.com is gone')
-    def test_sites_no_connection_close(self):
-        # Some sites do not send Connection: close header.
-        # Verify that those work properly. (#issue12576)
-
-        URL = 'http://www.imdb.com' # mangles Connection:close
-
-        with socket_helper.transient_internet(URL):
-            try:
-                with urllib.request.urlopen(URL) as res:
-                    pass
-            except ValueError:
-                self.fail("urlopen failed for site not sending \
-                           Connection:close")
-            else:
-                self.assertTrue(res)
-
-            req = urllib.request.urlopen(URL)
-            res = req.read()
-            self.assertTrue(res)
-
     def _test_urls(self, urls, handlers, retry=True):
         import time
         import logging