Searched refs:getargs_h (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 233 from _testcapi import getargs_h 235 self.assertRaises(TypeError, getargs_h, 3.14) 236 self.assertEqual(99, getargs_h(Int())) 237 self.assertEqual(0, getargs_h(IntSubclass())) 238 self.assertRaises(TypeError, getargs_h, BadInt()) 240 self.assertEqual(1, getargs_h(BadInt2())) 241 self.assertEqual(0, getargs_h(BadInt3())) 243 self.assertRaises(OverflowError, getargs_h, SHRT_MIN-1) 244 self.assertEqual(SHRT_MIN, getargs_h(SHRT_MIN)) 245 self.assertEqual(SHRT_MAX, getargs_h(SHRT_MAX)) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 217 from _testcapi import getargs_h 219 self.assertRaises(TypeError, getargs_h, 3.14) 220 self.assertEqual(99, getargs_h(Long())) 221 self.assertEqual(99, getargs_h(Int())) 223 self.assertRaises(OverflowError, getargs_h, SHRT_MIN-1) 224 self.assertEqual(SHRT_MIN, getargs_h(SHRT_MIN)) 225 self.assertEqual(SHRT_MAX, getargs_h(SHRT_MAX)) 226 self.assertRaises(OverflowError, getargs_h, SHRT_MAX+1) 228 self.assertEqual(42, getargs_h(42)) 229 self.assertEqual(42, getargs_h(42L)) [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1103 getargs_h(PyObject *self, PyObject *args) in getargs_h() function 2705 {"getargs_h", getargs_h, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1084 getargs_h(PyObject *self, PyObject *args) in getargs_h() function 4638 {"getargs_h", getargs_h, METH_VARARGS},
|