Skip to content

Commit c488e5c

Browse files
mgornyebonnal
authored andcommitted
pythongh-125584: Require network resource in test_urllib2.HandlerTests.test_ftp_error (python#125586)
1 parent 806a0fd commit c488e5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_urllib2.py

+1
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ def connect_ftp(self, user, passwd, host, port, dirs,
794794
self.assertEqual(headers.get("Content-type"), mimetype)
795795
self.assertEqual(int(headers["Content-length"]), len(data))
796796

797+
@support.requires_resource("network")
797798
def test_ftp_error(self):
798799
class ErrorFTPHandler(urllib.request.FTPHandler):
799800
def __init__(self, exception):

0 commit comments

Comments
 (0)