(self)
| 535 | serv.close() |
| 536 | |
| 537 | def testTimeoutDefault(self): |
| 538 | self.assertIsNone(socket.getdefaulttimeout()) |
| 539 | socket.setdefaulttimeout(test_support.LOOPBACK_TIMEOUT) |
| 540 | try: |
| 541 | pop = poplib.POP3(HOST, self.port) |
| 542 | finally: |
| 543 | socket.setdefaulttimeout(None) |
| 544 | self.assertEqual(pop.sock.gettimeout(), test_support.LOOPBACK_TIMEOUT) |
| 545 | pop.close() |
| 546 | |
| 547 | def testTimeoutNone(self): |
| 548 | self.assertIsNone(socket.getdefaulttimeout()) |
nothing calls this directly
no test coverage detected