Home
last modified time | relevance | path

Searched refs:getargs_n (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_getargs2.py353 from _testcapi import getargs_n
356 self.assertRaises(TypeError, getargs_n, 3.14)
357 self.assertEqual(99, getargs_n(Index()))
358 self.assertEqual(0, getargs_n(IndexIntSubclass()))
359 self.assertRaises(TypeError, getargs_n, BadIndex())
361 self.assertEqual(1, getargs_n(BadIndex2()))
362 self.assertEqual(0, getargs_n(BadIndex3()))
363 self.assertRaises(TypeError, getargs_n, Int())
364 self.assertEqual(0, getargs_n(IntSubclass()))
365 self.assertRaises(TypeError, getargs_n, BadInt())
[all …]
/external/python/cpython2/Lib/test/
Dtest_getargs2.py265 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))
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1157 getargs_n(PyObject *self, PyObject *args) in getargs_n() function
2711 {"getargs_n", getargs_n, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1303 getargs_n(PyObject *self, PyObject *args) in getargs_n() function
5713 {"getargs_n", getargs_n, METH_VARARGS},