(self)
| 3834 | self.sendToServer(MSG) |
| 3835 | |
| 3836 | def testRecvmsgIntoArray(self): |
| 3837 | # Receive into an array rather than the usual bytearray. |
| 3838 | buf = array.array("B", [0] * len(MSG)) |
| 3839 | nbytes, ancdata, flags, addr = self.serv_sock.recvmsg_into([buf]) |
| 3840 | self.assertEqual(nbytes, len(MSG)) |
| 3841 | self.assertEqual(buf.tobytes(), MSG) |
| 3842 | self.checkRecvmsgAddress(addr, self.cli_addr) |
| 3843 | self.assertEqual(ancdata, []) |
| 3844 | self.checkFlags(flags, eor=True) |
| 3845 | |
| 3846 | def _testRecvmsgIntoArray(self): |
| 3847 | self.sendToServer(MSG) |
nothing calls this directly
no test coverage detected