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

Method testSendall

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

Source from the content-addressed store, hash-verified

247 serv.getsockname())
248
249 def testSendall(self):
250 # Test sendall() timeout
251 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
252 socket_helper.bind_port(serv, self.localhost)
253 serv.listen()
254 self.sock.connect(serv.getsockname())
255 # Send a lot of data in order to bypass buffering in the TCP stack.
256 self._sock_operation(100, 1.5, 'sendall', b"X" * 200000)
257
258
259class UDPTimeoutTestCase(TimeoutTestCase):

Callers

nothing calls this directly

Calls 5

socketMethod · 0.80
_sock_operationMethod · 0.80
listenMethod · 0.45
connectMethod · 0.45
getsocknameMethod · 0.45

Tested by

no test coverage detected