MCPcopy Create free account
hub / github.com/RustPython/RustPython / testTimeoutValue

Method testTimeoutValue

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

Source from the content-addressed store, hash-verified

555 pop.close()
556
557 def testTimeoutValue(self):
558 pop = poplib.POP3(HOST, self.port, timeout=test_support.LOOPBACK_TIMEOUT)
559 self.assertEqual(pop.sock.gettimeout(), test_support.LOOPBACK_TIMEOUT)
560 pop.close()
561 with self.assertRaises(ValueError):
562 poplib.POP3(HOST, self.port, timeout=0)
563
564
565def 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