Skip to content

Commit

Permalink
pythongh-125584: Require network resource in ``test_urllib2.HandlerTe…
Browse files Browse the repository at this point in the history
…sts.test_ftp_error`` (python#125586)
  • Loading branch information
mgorny authored Oct 16, 2024
1 parent feda9aa commit e4d90be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_urllib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ def connect_ftp(self, user, passwd, host, port, dirs,
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):
Expand Down

0 comments on commit e4d90be

Please sign in to comment.