mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-125584: Require network resource in `test_urllib2.HandlerTests.test_ftp_error` (#125586)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user