Lines Matching refs:read1
894 read1 = read variable in IOTest.test_buffered_readinto_mixin.Stream
948 def read1(self, size): member in IOTest.test_BufferedIOBase_readinto.Reader
1257 self.assertEqual(b"b", bufio.read1(1))
1259 self.assertEqual(b"", bufio.read1(0))
1260 self.assertEqual(b"c", bufio.read1(100))
1262 self.assertEqual(b"d", bufio.read1(100))
1264 self.assertEqual(b"efg", bufio.read1(100))
1266 self.assertEqual(b"", bufio.read1(100))
1273 self.assertEqual(b"bc", bufio.read1())
1274 self.assertEqual(b"d", bufio.read1())
1275 self.assertEqual(b"efg", bufio.read1(-1))
1277 self.assertEqual(b"", bufio.read1())
1501 self.assertRaises(ValueError, b.read1, 1)
1963 self.assertEqual(pair.read1(3), b"abc")
1964 self.assertEqual(pair.read1(), b"def")
2218 bufio.read1(1)
2292 self.assertEqual(f.read1(1), b'd')
3592 def read1(self, len_): member in MemviewBytesIO
3593 return _to_memoryview(super().read1(len_))
3861 self.assertRaises(ValueError, f.read1, 1024)
3862 self.assertRaises(ValueError, f.read1)