Lines Matching refs:getargs_i
252 from _testcapi import getargs_i
254 self.assertRaises(TypeError, getargs_i, 3.14)
255 self.assertEqual(99, getargs_i(Int()))
256 self.assertEqual(0, getargs_i(IntSubclass()))
257 self.assertRaises(TypeError, getargs_i, BadInt())
259 self.assertEqual(1, getargs_i(BadInt2()))
260 self.assertEqual(0, getargs_i(BadInt3()))
262 self.assertRaises(OverflowError, getargs_i, INT_MIN-1)
263 self.assertEqual(INT_MIN, getargs_i(INT_MIN))
264 self.assertEqual(INT_MAX, getargs_i(INT_MAX))
265 self.assertRaises(OverflowError, getargs_i, INT_MAX+1)
267 self.assertEqual(42, getargs_i(42))
268 self.assertRaises(OverflowError, getargs_i, VERY_LARGE)