MCPcopy Index your code
hub / github.com/RustPython/RustPython / testRecvmsgFromSendmsg

Method testRecvmsgFromSendmsg

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

Source from the content-addressed store, hash-verified

3707
3708 @requireAttrs(socket.socket, "sendmsg")
3709 def testRecvmsgFromSendmsg(self):
3710 # Test receiving with recvmsg[_into]() when message is sent
3711 # using sendmsg().
3712 self.serv_sock.settimeout(self.fail_timeout)
3713 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock, len(MSG))
3714 self.assertEqual(msg, MSG)
3715 self.checkRecvmsgAddress(addr, self.cli_addr)
3716 self.assertEqual(ancdata, [])
3717 self.checkFlags(flags, eor=True)
3718
3719 @testRecvmsgFromSendmsg.client_skip
3720 def _testRecvmsgFromSendmsg(self):

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected