Lines Matching refs:readinto
98 def readinto(self, buf): member in MockRawIOWithoutRead
159 def readinto(self, buf): member in MisbehavedRawIO
160 MockRawIO.readinto(self, buf)
196 def readinto(self, b): member in MockFileIO
197 res = super(MockFileIO, self).readinto(b)
295 self.assertEqual(f.readinto(data), 5)
298 self.assertEqual(f.readinto(data), 2)
304 self.assertEqual(f.readinto(byteslike(b"x")), 0)
308 self.assertEqual(f.readinto(byteslike()), 0)
674 self.assertEqual(stream.readinto(buffer), 5)
911 self.assertEqual(bufio.readinto(b), 2)
913 self.assertEqual(bufio.readinto(b), 2)
915 self.assertEqual(bufio.readinto(b), 2)
917 self.assertEqual(bufio.readinto(b), 1)
919 self.assertEqual(bufio.readinto(b), 0)
1474 self.assertEqual(pair.readinto(data), 5)
1667 n = bufio.readinto(b)
1724 bufio.readinto(bytearray(1))
1795 f.readinto(buf)
2933 self.assertRaises(ValueError, f.readinto, bytearray(1024))