HomeSort by relevance Sort by last modified time
    Searched refs:readinto (Results 1 - 20 of 20) sorted by null

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_file.py 46 # verify readinto
51 n = self.f.readinto(a)
55 # verify readinto refuses text files
59 if hasattr(self.f, "readinto"):
60 self.assertRaises(TypeError, self.f.readinto, a)
94 if hasattr(f, "readinto"):
95 self.assertRaises((IOError, TypeError), f.readinto, "")
247 ("readinto", (array("b", b" "*100),))]
286 f.readinto(buf)
288 self.fail("readinto() after next() with supposedly empty
    [all...]
test_memoryio.py 419 self.assertEqual(memio.readinto(b), 5)
421 self.assertEqual(memio.readinto(b), 5)
423 self.assertEqual(memio.readinto(b), 0)
427 self.assertEqual(memio.readinto(b), 10)
431 self.assertEqual(memio.readinto(b), 0)
433 self.assertRaises(TypeError, memio.readinto, '')
437 memio.readinto(a)
440 self.assertRaises(ValueError, memio.readinto, b)
444 memio.readinto(b)
test_file2k.py 58 # verify readinto
63 n = self.f.readinto(a)
111 self.assertRaises(TypeError, f.readinto, "")
116 methods = ['fileno', 'flush', 'isatty', 'next', 'read', 'readinto',
174 self.assertRaises(IOError, self.f.readinto, bytearray(len(data)))
330 ("readinto", (array("c", " "*100),))]
375 f.readinto(buf)
377 self.fail("readinto() after next() with supposedly empty "
381 self.fail("readinto() after next() with empty buffer "
408 f.readinto(buf
    [all...]
test_fileio.py 68 # verify readinto
73 n = self.f.readinto(a)
123 self.assertRaises(TypeError, f.readinto, "")
129 methods = ['fileno', 'isatty', 'read', 'readinto',
262 f.readinto(a)
test_io.py 64 RawIO.read() which calls readinto()."""
94 def readinto(self, buf): member in class:MockRawIOWithoutRead
155 def readinto(self, buf): member in class:MisbehavedRawIO
156 MockRawIO.readinto(self, buf)
192 def readinto(self, b): member in class:MockFileIO
193 res = super(MockFileIO, self).readinto(b)
289 self.assertEqual(f.readinto(data), 5)
291 self.assertEqual(f.readinto(data), 2)
297 self.assertEqual(f.readinto(bytearray(b"x")), 0)
301 self.assertEqual(f.readinto(bytearray()), 0
    [all...]
test_memoryview.py 243 self.assertRaises(TypeError, i.readinto, m)
test_str.py 432 self.assertRaises(TypeError, sys.stdin.readinto, b"")
test_bytes.py 536 # Test readinto
539 n = f.readinto(b)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_file.py 46 # verify readinto
51 n = self.f.readinto(a)
55 # verify readinto refuses text files
59 if hasattr(self.f, "readinto"):
60 self.assertRaises(TypeError, self.f.readinto, a)
94 if hasattr(f, "readinto"):
95 self.assertRaises((IOError, TypeError), f.readinto, "")
247 ("readinto", (array("b", b" "*100),))]
286 f.readinto(buf)
288 self.fail("readinto() after next() with supposedly empty
    [all...]
test_memoryio.py 419 self.assertEqual(memio.readinto(b), 5)
421 self.assertEqual(memio.readinto(b), 5)
423 self.assertEqual(memio.readinto(b), 0)
427 self.assertEqual(memio.readinto(b), 10)
431 self.assertEqual(memio.readinto(b), 0)
433 self.assertRaises(TypeError, memio.readinto, '')
437 memio.readinto(a)
440 self.assertRaises(ValueError, memio.readinto, b)
444 memio.readinto(b)
test_file2k.py 58 # verify readinto
63 n = self.f.readinto(a)
111 self.assertRaises(TypeError, f.readinto, "")
116 methods = ['fileno', 'flush', 'isatty', 'next', 'read', 'readinto',
174 self.assertRaises(IOError, self.f.readinto, bytearray(len(data)))
330 ("readinto", (array("c", " "*100),))]
375 f.readinto(buf)
377 self.fail("readinto() after next() with supposedly empty "
381 self.fail("readinto() after next() with empty buffer "
408 f.readinto(buf
    [all...]
test_fileio.py 68 # verify readinto
73 n = self.f.readinto(a)
123 self.assertRaises(TypeError, f.readinto, "")
129 methods = ['fileno', 'isatty', 'read', 'readinto',
262 f.readinto(a)
test_io.py 64 RawIO.read() which calls readinto()."""
94 def readinto(self, buf): member in class:MockRawIOWithoutRead
155 def readinto(self, buf): member in class:MisbehavedRawIO
156 MockRawIO.readinto(self, buf)
192 def readinto(self, b): member in class:MockFileIO
193 res = super(MockFileIO, self).readinto(b)
289 self.assertEqual(f.readinto(data), 5)
291 self.assertEqual(f.readinto(data), 2)
297 self.assertEqual(f.readinto(bytearray(b"x")), 0)
301 self.assertEqual(f.readinto(bytearray()), 0
    [all...]
test_memoryview.py 243 self.assertRaises(TypeError, i.readinto, m)
test_str.py 432 self.assertRaises(TypeError, sys.stdin.readinto, b"")
test_bytes.py 536 # Test readinto
539 n = f.readinto(b)
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/
video.py 162 num_read = proc.stdout.readinto(frame_data)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
_pyio.py 266 Even though IOBase does not declare read, readinto, or write because
273 readinto) needed. Text I/O classes work with str data.
531 # The read() method is implemented by calling readinto(); derived
533 # readinto() as a primitive operation. In general, readinto() can be
537 # readinto() in terms of read(), in case the latter is a more suitable
552 n = self.readinto(b)
572 def readinto(self, b): member in class:RawIOBase
578 self._unsupported("readinto")
598 implementation that defers to readinto()
633 def readinto(self, b): member in class:BufferedIOBase
1190 def readinto(self, b): member in class:BufferedRWPair
1275 def readinto(self, b): member in class:BufferedRandom
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
_pyio.py 266 Even though IOBase does not declare read, readinto, or write because
273 readinto) needed. Text I/O classes work with str data.
531 # The read() method is implemented by calling readinto(); derived
533 # readinto() as a primitive operation. In general, readinto() can be
537 # readinto() in terms of read(), in case the latter is a more suitable
552 n = self.readinto(b)
572 def readinto(self, b): member in class:RawIOBase
578 self._unsupported("readinto")
598 implementation that defers to readinto()
633 def readinto(self, b): member in class:BufferedIOBase
1190 def readinto(self, b): member in class:BufferedRWPair
1275 def readinto(self, b): member in class:BufferedRandom
    [all...]
  /external/chromium_org/tools/telemetry/third_party/pyserial/serial/
serialutil.py 206 #~ readinto(b)
530 def readinto(self, b): member in class:SerialBase

Completed in 362 milliseconds