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

Method testTimeoutDirectAccess

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

Source from the content-addressed store, hash-verified

1137 ftp.close()
1138
1139 def testTimeoutDirectAccess(self):
1140 ftp = ftplib.FTP()
1141 ftp.timeout = 30
1142 ftp.connect(HOST)
1143 self.assertEqual(ftp.sock.gettimeout(), 30)
1144 self.evt.wait()
1145 ftp.close()
1146
1147
1148class MiscTestCase(TestCase):

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