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

Method testTimeoutNone

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

Source from the content-addressed store, hash-verified

553 pop.close()
554
555 def testTimeoutNone(self):
556 self.assertIsNone(socket.getdefaulttimeout())
557 socket.setdefaulttimeout(30)
558 try:
559 pop = poplib.POP3(HOST, self.port, timeout=None)
560 finally:
561 socket.setdefaulttimeout(None)
562 self.assertIsNone(pop.sock.gettimeout())
563 pop.close()
564
565 def testTimeoutValue(self):
566 pop = poplib.POP3(HOST, self.port, timeout=test_support.LOOPBACK_TIMEOUT)

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
assertIsNoneMethod · 0.80
gettimeoutMethod · 0.45

Tested by

no test coverage detected