Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_getargs2.py252 from _testcapi import getargs_i
254 self.assertRaises(TypeError, getargs_i, 3.14)
255 self.assertEqual(99, getargs_i(Int()))
256 self.assertEqual(0, getargs_i(IntSubclass()))
257 self.assertRaises(TypeError, getargs_i, BadInt())
259 self.assertEqual(1, getargs_i(BadInt2()))
260 self.assertEqual(0, getargs_i(BadInt3()))
262 self.assertRaises(OverflowError, getargs_i, INT_MIN-1)
263 self.assertEqual(INT_MIN, getargs_i(INT_MIN))
264 self.assertEqual(INT_MAX, getargs_i(INT_MAX))
[all …]
/external/python/cpython2/Lib/test/
Dtest_getargs2.py233 from _testcapi import getargs_i
235 self.assertRaises(TypeError, getargs_i, 3.14)
236 self.assertEqual(99, getargs_i(Long()))
237 self.assertEqual(99, getargs_i(Int()))
239 self.assertRaises(OverflowError, getargs_i, INT_MIN-1)
240 self.assertEqual(INT_MIN, getargs_i(INT_MIN))
241 self.assertEqual(INT_MAX, getargs_i(INT_MAX))
242 self.assertRaises(OverflowError, getargs_i, INT_MAX+1)
244 self.assertEqual(42, getargs_i(42))
245 self.assertEqual(42, getargs_i(42L))
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1139 getargs_i(PyObject *self, PyObject *args) in getargs_i() function
2709 {"getargs_i", getargs_i, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1120 getargs_i(PyObject *self, PyObject *args) in getargs_i() function
4642 {"getargs_i", getargs_i, METH_VARARGS},