[Python-checkins] bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161)

miss-islington webhook-mailer at python.org
Sun Feb 6 09:33:12 EST 2022


https://github.com/python/cpython/commit/c88407ccf5e72d00e909c2399ff7163501aa7089
commit: c88407ccf5e72d00e909c2399ff7163501aa7089
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-02-06T06:33:01-08:00
summary:

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


POST requests to http://www.example.com/ fail randomly.
(cherry picked from commit 1578de2fcd685c71f9c84e09bac32901dea192c1)

Co-authored-by: Victor Stinner <vstinner at python.org>

files:
M Lib/test/test_urllib2.py

diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 9db23e6ce04bd..4d341e357063a 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1790,6 +1790,8 @@ class MyOtherHTTPHandler(urllib.request.HTTPHandler):
 
     @unittest.skipUnless(support.is_resource_enabled('network'),
                          '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):
         with socket_helper.transient_internet("http://www.example.com/"):
             opener = urllib.request.build_opener()



More information about the Python-checkins mailing list