(self)
| 5480 | self.cli.connect((HOST, self.port)) |
| 5481 | |
| 5482 | def testInheritFlagsTimeout(self): |
| 5483 | # bpo-7995: accept() on a listening socket with a timeout and the |
| 5484 | # default timeout is None, the resulting socket must inherit |
| 5485 | # the default timeout. |
| 5486 | default_timeout = 20.0 |
| 5487 | with socket_setdefaulttimeout(default_timeout): |
| 5488 | self.serv.settimeout(10) |
| 5489 | conn, addr = self.serv.accept() |
| 5490 | self.addCleanup(conn.close) |
| 5491 | self.assertEqual(conn.gettimeout(), default_timeout) |
| 5492 | |
| 5493 | def _testInheritFlagsTimeout(self): |
| 5494 | self.cli.connect((HOST, self.port)) |
nothing calls this directly
no test coverage detected