bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161)

POST requests to http://www.example.com/ fail randomly.
This commit is contained in:
Victor Stinner 2022-02-06 15:08:54 +01:00 committed by GitHub
parent 6c4e44ef8a
commit 1578de2fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1790,6 +1790,8 @@ class MiscTests(unittest.TestCase):
@unittest.skipUnless(support.is_resource_enabled('network'), @unittest.skipUnless(support.is_resource_enabled('network'),
'test requires network access') 'test requires network access')
# bpo-46648: test fails randomly with "http://www.example.com/" URL
@unittest.skipIf(True, "POST request to http://www.example.com/ fail randomly")
def test_issue16464(self): def test_issue16464(self):
with socket_helper.transient_internet("http://www.example.com/"): with socket_helper.transient_internet("http://www.example.com/"):
opener = urllib.request.build_opener() opener = urllib.request.build_opener()