]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Feb 2022 14:33:01 +0000 (06:33 -0800)
committerGitHub <noreply@github.com>
Sun, 6 Feb 2022 14:33:01 +0000 (06:33 -0800)
POST requests to http://www.example.com/ fail randomly.
(cherry picked from commit 1578de2fcd685c71f9c84e09bac32901dea192c1)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_urllib2.py

index 9db23e6ce04bd59e249ba640daa0eccdc3be378b..4d341e357063a2bf25c1b2a25d6d3f522b1cdf90 100644 (file)
@@ -1790,6 +1790,8 @@ class MiscTests(unittest.TestCase):
 
     @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()