]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125584: Require network resource in ``test_urllib2.HandlerTests.test_ftp_error...
authorMichał Górny <mgorny@gentoo.org>
Wed, 16 Oct 2024 13:24:41 +0000 (15:24 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2024 13:24:41 +0000 (13:24 +0000)
Lib/test/test_urllib2.py

index 19179fdc9508ca126a6a653021f4706f92ace424..b90ccc2f125b93f2ad4fe66de17f9de92d6e2e60 100644 (file)
@@ -794,6 +794,7 @@ class HandlerTests(unittest.TestCase):
             self.assertEqual(headers.get("Content-type"), mimetype)
             self.assertEqual(int(headers["Content-length"]), len(data))
 
+    @support.requires_resource("network")
     def test_ftp_error(self):
         class ErrorFTPHandler(urllib.request.FTPHandler):
             def __init__(self, exception):