From: Michał Górny Date: Wed, 16 Oct 2024 13:24:41 +0000 (+0200) Subject: gh-125584: Require network resource in ``test_urllib2.HandlerTests.test_ftp_error... X-Git-Tag: v3.14.0a2~401 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4d90be84536746a966478acc4c0cf43a201f492;p=thirdparty%2FPython%2Fcpython.git gh-125584: Require network resource in ``test_urllib2.HandlerTests.test_ftp_error`` (#125586) --- diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 19179fdc9508..b90ccc2f125b 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -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):