Lines Matching refs:read1
903 read1 = read variable in IOTest.test_buffered_readinto_mixin.Stream
957 def read1(self, size): member in IOTest.test_BufferedIOBase_readinto.Reader
1275 self.assertEqual(b"b", bufio.read1(1))
1277 self.assertEqual(b"", bufio.read1(0))
1278 self.assertEqual(b"c", bufio.read1(100))
1280 self.assertEqual(b"d", bufio.read1(100))
1282 self.assertEqual(b"efg", bufio.read1(100))
1284 self.assertEqual(b"", bufio.read1(100))
1291 self.assertEqual(b"bc", bufio.read1())
1292 self.assertEqual(b"d", bufio.read1())
1293 self.assertEqual(b"efg", bufio.read1(-1))
1295 self.assertEqual(b"", bufio.read1())
1522 self.assertRaises(ValueError, b.read1, 1)
1987 self.assertEqual(pair.read1(3), b"abc")
1988 self.assertEqual(pair.read1(), b"def")
2261 bufio.read1(1)
2335 self.assertEqual(f.read1(1), b'd')
3669 def read1(self, len_): member in MemviewBytesIO
3670 return _to_memoryview(super().read1(len_))
3949 self.assertRaises(ValueError, f.read1, 1024)
3950 self.assertRaises(ValueError, f.read1)