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

Method setUp

Lib/test/test_timeout.py:140–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 """TCP test case for socket.socket() timeout functions"""
139
140 def setUp(self):
141 self.sock = self.enterContext(
142 socket.socket(socket.AF_INET, socket.SOCK_STREAM))
143 self.addr_remote = resolve_address('www.python.org.', 80)
144
145 def testConnectTimeout(self):
146 # Testing connect timeout is tricky: we need to have IP connectivity

Callers

nothing calls this directly

Calls 3

resolve_addressFunction · 0.85
enterContextMethod · 0.80
socketMethod · 0.80

Tested by

no test coverage detected