Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_getargs2.py329 from _testcapi import getargs_l
331 self.assertRaises(TypeError, getargs_l, 3.14)
332 self.assertEqual(99, getargs_l(Index()))
333 self.assertEqual(0, getargs_l(IndexIntSubclass()))
334 self.assertRaises(TypeError, getargs_l, BadIndex())
336 self.assertEqual(1, getargs_l(BadIndex2()))
337 self.assertEqual(0, getargs_l(BadIndex3()))
338 self.assertRaises(TypeError, getargs_l, Int())
339 self.assertEqual(0, getargs_l(IntSubclass()))
340 self.assertRaises(TypeError, getargs_l, BadInt())
[all …]
/external/python/cpython2/Lib/test/
Dtest_getargs2.py249 from _testcapi import getargs_l
251 self.assertRaises(TypeError, getargs_l, 3.14)
252 self.assertEqual(99, getargs_l(Long()))
253 self.assertEqual(99, getargs_l(Int()))
255 self.assertRaises(OverflowError, getargs_l, LONG_MIN-1)
256 self.assertEqual(LONG_MIN, getargs_l(LONG_MIN))
257 self.assertEqual(LONG_MAX, getargs_l(LONG_MAX))
258 self.assertRaises(OverflowError, getargs_l, LONG_MAX+1)
260 self.assertEqual(42, getargs_l(42))
261 self.assertEqual(42, getargs_l(42L))
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1148 getargs_l(PyObject *self, PyObject *args) in getargs_l() function
2710 {"getargs_l", getargs_l, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1294 getargs_l(PyObject *self, PyObject *args) in getargs_l() function
5712 {"getargs_l", getargs_l, METH_VARARGS},