Searched refs:getargs_k (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 255 from _testcapi import getargs_k 258 self.assertRaises(TypeError, getargs_k, 3.14) 259 self.assertRaises(TypeError, getargs_k, Index()) 260 self.assertEqual(0, getargs_k(IndexIntSubclass())) 261 self.assertRaises(TypeError, getargs_k, BadIndex()) 262 self.assertRaises(TypeError, getargs_k, BadIndex2()) 263 self.assertEqual(0, getargs_k(BadIndex3())) 264 self.assertRaises(TypeError, getargs_k, Int()) 265 self.assertEqual(0, getargs_k(IntSubclass())) 266 self.assertRaises(TypeError, getargs_k, BadInt()) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 198 from _testcapi import getargs_k 201 self.assertRaises(TypeError, getargs_k, 3.14) 202 self.assertRaises(TypeError, getargs_k, Long()) 203 self.assertRaises(TypeError, getargs_k, Int()) 205 self.assertEqual(ULONG_MAX, getargs_k(-1)) 206 self.assertEqual(0, getargs_k(0)) 207 self.assertEqual(ULONG_MAX, getargs_k(ULONG_MAX)) 208 self.assertEqual(0, getargs_k(ULONG_MAX+1)) 210 self.assertEqual(42, getargs_k(42)) 211 self.assertEqual(42, getargs_k(42L)) [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1130 getargs_k(PyObject *self, PyObject *args) in getargs_k() function 2708 {"getargs_k", getargs_k, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1276 getargs_k(PyObject *self, PyObject *args) in getargs_k() function 5710 {"getargs_k", getargs_k, METH_VARARGS},
|