Searched refs:getargs_i (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 313 from _testcapi import getargs_i 315 self.assertRaises(TypeError, getargs_i, 3.14) 316 self.assertEqual(99, getargs_i(Index())) 317 self.assertEqual(0, getargs_i(IndexIntSubclass())) 318 self.assertRaises(TypeError, getargs_i, BadIndex()) 320 self.assertEqual(1, getargs_i(BadIndex2())) 321 self.assertEqual(0, getargs_i(BadIndex3())) 323 self.assertEqual(99, getargs_i(Int())) 324 self.assertEqual(0, getargs_i(IntSubclass())) 325 self.assertRaises(TypeError, getargs_i, BadInt()) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 233 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.c | 1139 getargs_i(PyObject *self, PyObject *args) in getargs_i() function 2709 {"getargs_i", getargs_i, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1155 getargs_i(PyObject *self, PyObject *args) in getargs_i() function 5380 {"getargs_i", getargs_i, METH_VARARGS},
|