MCPcopy Index your code
hub / github.com/python/cpython / ErrorFTPHandler

Class ErrorFTPHandler

Lib/test/test_urllib2.py:802–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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")

Callers 1

test_ftp_errorMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_ftp_errorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…