(self)
| 543 | serv.close() |
| 544 | |
| 545 | def testTimeoutDefault(self): |
| 546 | self.assertIsNone(socket.getdefaulttimeout()) |
| 547 | socket.setdefaulttimeout(test_support.LOOPBACK_TIMEOUT) |
| 548 | try: |
| 549 | pop = poplib.POP3(HOST, self.port) |
| 550 | finally: |
| 551 | socket.setdefaulttimeout(None) |
| 552 | self.assertEqual(pop.sock.gettimeout(), test_support.LOOPBACK_TIMEOUT) |
| 553 | pop.close() |
| 554 | |
| 555 | def testTimeoutNone(self): |
| 556 | self.assertIsNone(socket.getdefaulttimeout()) |
nothing calls this directly
no test coverage detected