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

Method test_all_errors

Lib/test/test_ftplib.py:530–538  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

528 self.assertRaises(ftplib.error_proto, self.client.sendcmd, 'echo 999')
529
530 def test_all_errors(self):
531 exceptions = (ftplib.error_reply, ftplib.error_temp, ftplib.error_perm,
532 ftplib.error_proto, ftplib.Error, OSError,
533 EOFError)
534 for x in exceptions:
535 try:
536 raise x('exception not included in all_errors set')
537 except ftplib.all_errors:
538 pass
539
540 def test_set_pasv(self):
541 # passive mode is supposed to be enabled by default

Callers

nothing calls this directly

Calls 1

xFunction · 0.50

Tested by

no test coverage detected