Searched refs:BadIndex (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 64 class BadIndex: class 160 self.assertRaises(TypeError, getargs_b, BadIndex()) 186 self.assertRaises(TypeError, getargs_B, BadIndex()) 212 self.assertRaises(TypeError, getargs_H, BadIndex()) 239 self.assertRaises(TypeError, getargs_I, BadIndex()) 267 self.assertRaises(TypeError, getargs_k, BadIndex()) 292 self.assertRaises(TypeError, getargs_h, BadIndex()) 318 self.assertRaises(TypeError, getargs_i, BadIndex()) 344 self.assertRaises(TypeError, getargs_l, BadIndex()) 371 self.assertRaises(TypeError, getargs_n, BadIndex()) [all …]
|
D | test_int.py | 434 class BadIndex(int): class 442 self.assertEqual(int(BadIndex()), 0) 462 class BadIndex: class 480 return BadIndex() 490 bad_int = BadIndex()
|
D | test_struct.py | 278 class BadIndex(object): class 299 BadIndex())
|
/external/python/cpython2/Lib/test/ |
D | test_struct.py | 306 class BadIndex(object): class 327 for nonint in NotAnIntNS(), NotAnIntOS(), BadIndex():
|