Searched refs:getargs_b (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 157 from _testcapi import getargs_b 159 self.assertRaises(TypeError, getargs_b, 3.14) 160 self.assertEqual(99, getargs_b(Index())) 161 self.assertEqual(0, getargs_b(IndexIntSubclass())) 162 self.assertRaises(TypeError, getargs_b, BadIndex()) 164 self.assertEqual(1, getargs_b(BadIndex2())) 165 self.assertEqual(0, getargs_b(BadIndex3())) 166 self.assertRaises(TypeError, getargs_b, Int()) 167 self.assertEqual(0, getargs_b(IntSubclass())) 168 self.assertRaises(TypeError, getargs_b, BadInt()) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 131 from _testcapi import getargs_b 133 self.assertRaises(TypeError, getargs_b, 3.14) 134 self.assertEqual(99, getargs_b(Long())) 135 self.assertEqual(99, getargs_b(Int())) 137 self.assertRaises(OverflowError, getargs_b, -1) 138 self.assertEqual(0, getargs_b(0)) 139 self.assertEqual(UCHAR_MAX, getargs_b(UCHAR_MAX)) 140 self.assertRaises(OverflowError, getargs_b, UCHAR_MAX + 1) 142 self.assertEqual(42, getargs_b(42)) 143 self.assertEqual(42, getargs_b(42L)) [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1085 getargs_b(PyObject *self, PyObject *args) in getargs_b() function 2703 {"getargs_b", getargs_b, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1231 getargs_b(PyObject *self, PyObject *args) in getargs_b() function 5705 {"getargs_b", getargs_b, METH_VARARGS},
|