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

Method _extra_handlers

Lib/test/test_urllib2net.py:299–307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 time.sleep(0.1)
298
299 def _extra_handlers(self):
300 handlers = []
301
302 cfh = urllib.request.CacheFTPHandler()
303 self.addCleanup(cfh.clear_cache)
304 cfh.setTimeout(1)
305 handlers.append(cfh)
306
307 return handlers
308
309
310class TimeoutTest(unittest.TestCase):

Callers 3

test_ftpMethod · 0.95
test_ftp_no_leakMethod · 0.95
test_fileMethod · 0.95

Calls 3

setTimeoutMethod · 0.95
addCleanupMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected