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

Method testTimeoutNone

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

Source from the content-addressed store, hash-verified

545 pop.close()
546
547 def testTimeoutNone(self):
548 self.assertIsNone(socket.getdefaulttimeout())
549 socket.setdefaulttimeout(30)
550 try:
551 pop = poplib.POP3(HOST, self.port, timeout=None)
552 finally:
553 socket.setdefaulttimeout(None)
554 self.assertIsNone(pop.sock.gettimeout())
555 pop.close()
556
557 def testTimeoutValue(self):
558 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