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.py339 from _testcapi import getargs_l
341 self.assertRaises(TypeError, getargs_l, 3.14)
342 self.assertEqual(99, getargs_l(Index()))
343 self.assertEqual(0, getargs_l(IndexIntSubclass()))
344 self.assertRaises(TypeError, getargs_l, BadIndex())
346 self.assertEqual(1, getargs_l(BadIndex2()))
347 self.assertEqual(0, getargs_l(BadIndex3()))
349 self.assertEqual(99, getargs_l(Int()))
350 self.assertEqual(0, getargs_l(IntSubclass()))
351 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.c1164 getargs_l(PyObject *self, PyObject *args) in getargs_l() function
5381 {"getargs_l", getargs_l, METH_VARARGS},