gh-125584: Require network resource in ``test_urllib2.HandlerTests.test_ftp_error`` (#125586)

This commit is contained in:
Michał Górny 2024-10-16 15:24:41 +02:00 committed by GitHub
parent feda9aa73a
commit e4d90be845
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View 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):