Lines Matching refs:getargs_n
290 from _testcapi import getargs_n
293 self.assertRaises(TypeError, getargs_n, 3.14)
294 self.assertRaises(TypeError, getargs_n, Int())
295 self.assertEqual(0, getargs_n(IntSubclass()))
296 self.assertRaises(TypeError, getargs_n, BadInt())
297 self.assertRaises(TypeError, getargs_n, BadInt2())
298 self.assertEqual(0, getargs_n(BadInt3()))
300 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MIN-1)
301 self.assertEqual(PY_SSIZE_T_MIN, getargs_n(PY_SSIZE_T_MIN))
302 self.assertEqual(PY_SSIZE_T_MAX, getargs_n(PY_SSIZE_T_MAX))
303 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MAX+1)
305 self.assertEqual(42, getargs_n(42))
306 self.assertRaises(OverflowError, getargs_n, VERY_LARGE)