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

Method testTimeoutValue

Lib/test/test_poplib.py:565–570  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

563 pop.close()
564
565 def testTimeoutValue(self):
566 pop = poplib.POP3(HOST, self.port, timeout=test_support.LOOPBACK_TIMEOUT)
567 self.assertEqual(pop.sock.gettimeout(), test_support.LOOPBACK_TIMEOUT)
568 pop.close()
569 with self.assertRaises(ValueError):
570 poplib.POP3(HOST, self.port, timeout=0)
571
572
573def setUpModule():

Callers

nothing calls this directly

Calls 4

closeMethod · 0.95
assertEqualMethod · 0.45
gettimeoutMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected