Lines Matching full:bytearray
1097 self.assertEqual('170.85.170.85', f(bytearray(b'\xaa\x55\xaa\x55')))
1105 self.assertEqual('170.85.170.85', g(bytearray(b'\xaa\x55\xaa\x55')))
1135 self.assertEqual('::1', f(bytearray(b'\x00' * 15 + b'\x01')))
1583 s.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, bytearray(can_filter))
2091 buf = bytearray(bufsize)
2550 [bytearray(10)], 0, 0)
2573 buf = bytearray(len(MSG))
2594 self.assertEqual(buf, bytearray(MSG))
2604 buf = bytearray(len(MSG))
2608 self.assertEqual(buf, bytearray(MSG))
2617 # Receive into an array rather than the usual bytearray.
2631 b1 = bytearray(b"----")
2632 b2 = bytearray(b"0123456789")
2633 b3 = bytearray(b"--------------")
2637 self.assertEqual(b1, bytearray(b"Mary"))
2638 self.assertEqual(b2, bytearray(b"01 had a 9"))
2639 self.assertEqual(b3, bytearray(b"little lamb---"))
3734 self.checkInterruptedRecv(self.serv.recv_into, bytearray(1024))
3740 self.checkInterruptedRecv(self.serv.recvfrom_into, bytearray(1024))
3748 self.checkInterruptedRecv(self.serv.recvmsg_into, [bytearray(1024)])
4209 self.assertEqual(self.read_file.readinto(bytearray(10)), None)
4218 buf = bytearray(10)
4223 self.assertEqual(self.read_file.readinto(bytearray(16)), None)
4615 # Check that an abstract name can be passed as a bytearray.
4617 s.bind(bytearray(b"\x00python\x00test\x00"))
4706 buf = bytearray(1024)
4715 buf = bytearray(1024)
4736 buf = bytearray(1024)
4745 buf = bytearray(1024)
4755 buf = bytearray(8)
4762 buf = bytearray()