| 800 | @support.requires_resource("network") |
| 801 | def test_ftp_error(self): |
| 802 | class ErrorFTPHandler(urllib.request.FTPHandler): |
| 803 | def __init__(self, exception): |
| 804 | self._exception = exception |
| 805 | |
| 806 | def connect_ftp(self, user, passwd, host, port, dirs, |
| 807 | timeout=socket._GLOBAL_DEFAULT_TIMEOUT): |
| 808 | raise self._exception |
| 809 | |
| 810 | exception = ftplib.error_perm( |
| 811 | "500 OOPS: cannot change directory:/nonexistent") |
no outgoing calls
searching dependent graphs…