Skip to content

Commit

Permalink
pythongh-125584: Require network resource in test_urllib2.HandlerTest…
Browse files Browse the repository at this point in the history
…s.test_ftp_error
  • Loading branch information
mgorny committed Oct 16, 2024
1 parent bee112a commit d5eb3c8
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 d5eb3c8

Please sign in to comment.