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

Method testRecvmsgFromSendmsg

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

Source from the content-addressed store, hash-verified

3810
3811 @requireAttrs(socket.socket, "sendmsg")
3812 def testRecvmsgFromSendmsg(self):
3813 # Test receiving with recvmsg[_into]() when message is sent
3814 # using sendmsg().
3815 self.serv_sock.settimeout(self.fail_timeout)
3816 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock, len(MSG))
3817 self.assertEqual(msg, MSG)
3818 self.checkRecvmsgAddress(addr, self.cli_addr)
3819 self.assertEqual(ancdata, [])
3820 self.checkFlags(flags, eor=True)
3821
3822 @testRecvmsgFromSendmsg.client_skip
3823 def _testRecvmsgFromSendmsg(self):

Callers

nothing calls this directly

Calls 5

checkFlagsMethod · 0.80
settimeoutMethod · 0.45
doRecvmsgMethod · 0.45
assertEqualMethod · 0.45
checkRecvmsgAddressMethod · 0.45

Tested by

no test coverage detected