Lines Matching refs:getargs_n
265 from _testcapi import getargs_n
268 self.assertRaises(TypeError, getargs_n, 3.14)
269 self.assertEqual(99, getargs_n(Long()))
270 self.assertEqual(99, getargs_n(Int()))
272 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MIN-1)
273 self.assertEqual(PY_SSIZE_T_MIN, getargs_n(PY_SSIZE_T_MIN))
274 self.assertEqual(PY_SSIZE_T_MAX, getargs_n(PY_SSIZE_T_MAX))
275 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MAX+1)
277 self.assertEqual(42, getargs_n(42))
278 self.assertEqual(42, getargs_n(42L))
279 self.assertRaises(OverflowError, getargs_n, VERY_LARGE)