]> granicus.if.org Git - python/commitdiff
bpo-33295: Skip test using missing external site (GH-6504) (GH-6509)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Apr 2018 15:33:48 +0000 (08:33 -0700)
committerNed Deily <nad@python.org>
Tue, 17 Apr 2018 15:33:48 +0000 (11:33 -0400)
`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close`
used `http://www.imdb.com/` but it is moved to https so the test is
not valid anymore.  Skip test for the moment to allow CI to proceed.
(cherry picked from commit 36d56ea826caffbeac0fc0c6d90248b80516e33c)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Lib/test/test_urllib2net.py

index 13e2dd5b784205bba34fc7e1ba33be41ec3823e1..15f73de9f029f80fb47604273060fb566757b393 100644 (file)
@@ -177,6 +177,7 @@ 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)