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

Method _testSendAndRecv

Lib/test/test_socket.py:2605–2607  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2603 self.assertEqual(self.cli_addr, addr)
2604
2605 def _testSendAndRecv(self):
2606 self.data = b'spam'
2607 self.cli.sendto(self.data, 0, (HOST, self.port))
2608
2609 def testPeek(self):
2610 data, addr = self.serv.recvfrom(self.bufsize, socket.MSG_PEEK)

Callers

nothing calls this directly

Calls 1

sendtoMethod · 0.45

Tested by

no test coverage detected