Searched refs:getargs_n (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 264 from _testcapi import getargs_n 267 self.assertRaises(TypeError, getargs_n, 3.14) 268 self.assertEqual(99, getargs_n(Long())) 269 self.assertEqual(99, getargs_n(Int())) 271 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MIN-1) 272 self.assertEqual(PY_SSIZE_T_MIN, getargs_n(PY_SSIZE_T_MIN)) 273 self.assertEqual(PY_SSIZE_T_MAX, getargs_n(PY_SSIZE_T_MAX)) 274 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MAX+1) 276 self.assertEqual(42, getargs_n(42)) 277 self.assertEqual(42, getargs_n(42L)) [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1149 getargs_n(PyObject *self, PyObject *args) in getargs_n() function 2525 {"getargs_n", getargs_n, METH_VARARGS},
|