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

Method testTimeoutConnect

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

Source from the content-addressed store, hash-verified

1123 ftplib.FTP(HOST, timeout=0)
1124
1125 def testTimeoutConnect(self):
1126 ftp = ftplib.FTP()
1127 ftp.connect(HOST, timeout=30)
1128 self.assertEqual(ftp.sock.gettimeout(), 30)
1129 self.evt.wait()
1130 ftp.close()
1131
1132 def testTimeoutDifferentOrder(self):
1133 ftp = ftplib.FTP(timeout=30)

Callers

nothing calls this directly

Calls 5

connectMethod · 0.95
closeMethod · 0.95
assertEqualMethod · 0.45
gettimeoutMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected