mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-125584: Require network resource in `test_urllib2.HandlerTests.test_ftp_error` (#125586)
This commit is contained in:
parent
feda9aa73a
commit
e4d90be845
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue