Home
last modified time | relevance | path

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

/external/python/cpython3/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.py1273 class IntLike(object): class
1278 self.assertEqual(list(islice(range(100), IntLike(10))), list(range(10)))
1279 self.assertEqual(list(islice(range(100), IntLike(10), IntLike(50))),
1281 self.assertEqual(list(islice(range(100), IntLike(10), IntLike(50), IntLike(5))),
/external/python/cpython2/Lib/ctypes/test/
Dtest_numbers.py124 class IntLike(object): class
127 i = IntLike()
/external/python/cpython3/Lib/ctypes/test/
Dtest_numbers.py124 class IntLike(object): class
127 i = IntLike()