Home
last modified time | relevance | path

Searched refs:IntLike (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Lib/test/
Dtest_memoryio.py14 class IntLike: class
126 self.assertRaises(ValueError, memio.truncate, IntLike(-1))
128 self.assertEqual(memio.truncate(IntLike(8)), 8)
144 self.assertRaises(ValueError, memio.truncate, IntLike(0))
168 self.assertEqual(memio.read(IntLike(0)), self.EOF)
169 self.assertEqual(memio.read(IntLike(1)), buf[:1])
170 self.assertEqual(memio.read(IntLike(4)), buf[1:5])
171 self.assertEqual(memio.read(IntLike(900)), buf[5:])
179 self.assertEqual(memio.read(IntLike(-1)), buf)
190 self.assertEqual(memio.read(IntLike(1)), self.EOF)
[all …]
Dtest_itertools.py1313 class IntLike(object): class
1318 self.assertEqual(list(islice(range(100), IntLike(10))), list(range(10)))
1319 self.assertEqual(list(islice(range(100), IntLike(10), IntLike(50))),
1321 self.assertEqual(list(islice(range(100), IntLike(10), IntLike(50), IntLike(5))),
/third_party/python/Lib/ctypes/test/
Dtest_numbers.py124 class IntLike(object): class
127 d = IntLike()