(self)
| 3937 | self.sendToServer(MSG) |
| 3938 | |
| 3939 | def testRecvmsgIntoArray(self): |
| 3940 | # Receive into an array rather than the usual bytearray. |
| 3941 | buf = array.array("B", [0] * len(MSG)) |
| 3942 | nbytes, ancdata, flags, addr = self.serv_sock.recvmsg_into([buf]) |
| 3943 | self.assertEqual(nbytes, len(MSG)) |
| 3944 | self.assertEqual(buf.tobytes(), MSG) |
| 3945 | self.checkRecvmsgAddress(addr, self.cli_addr) |
| 3946 | self.assertEqual(ancdata, []) |
| 3947 | self.checkFlags(flags, eor=True) |
| 3948 | |
| 3949 | def _testRecvmsgIntoArray(self): |
| 3950 | self.sendToServer(MSG) |
nothing calls this directly
no test coverage detected