Lines Matching refs:getargs_l
271 from _testcapi import getargs_l
273 self.assertRaises(TypeError, getargs_l, 3.14)
274 self.assertEqual(99, getargs_l(Int()))
275 self.assertEqual(0, getargs_l(IntSubclass()))
276 self.assertRaises(TypeError, getargs_l, BadInt())
278 self.assertEqual(1, getargs_l(BadInt2()))
279 self.assertEqual(0, getargs_l(BadInt3()))
281 self.assertRaises(OverflowError, getargs_l, LONG_MIN-1)
282 self.assertEqual(LONG_MIN, getargs_l(LONG_MIN))
283 self.assertEqual(LONG_MAX, getargs_l(LONG_MAX))
284 self.assertRaises(OverflowError, getargs_l, LONG_MAX+1)
286 self.assertEqual(42, getargs_l(42))
287 self.assertRaises(OverflowError, getargs_l, VERY_LARGE)