Lines Matching refs:getargs_i
233 from _testcapi import getargs_i
235 self.assertRaises(TypeError, getargs_i, 3.14)
236 self.assertEqual(99, getargs_i(Long()))
237 self.assertEqual(99, getargs_i(Int()))
239 self.assertRaises(OverflowError, getargs_i, INT_MIN-1)
240 self.assertEqual(INT_MIN, getargs_i(INT_MIN))
241 self.assertEqual(INT_MAX, getargs_i(INT_MAX))
242 self.assertRaises(OverflowError, getargs_i, INT_MAX+1)
244 self.assertEqual(42, getargs_i(42))
245 self.assertEqual(42, getargs_i(42L))
246 self.assertRaises(OverflowError, getargs_i, VERY_LARGE)