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

ambv webhook-mailer at python.org
Tue Feb 8 04:52:53 EST 2022


https://github.com/python/cpython/commit/f87e616af038ee8963185e11b96841c81e8ef15a
commit: f87e616af038ee8963185e11b96841c81e8ef15a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-02-08T10:52:39+01:00
summary:

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

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 160315394094f..b77f90a6ccbf1 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1785,6 +1785,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 support.transient_internet("http://www.example.com/"):
             opener = urllib.request.build_opener()



More information about the Python-checkins mailing list