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.py290 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))
[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.c1138 getargs_n(PyObject *self, PyObject *args) in getargs_n() function
4644 {"getargs_n", getargs_n, METH_VARARGS},