Home
last modified time | relevance | path

Searched refs:getargs_I (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_getargs2.py192 from _testcapi import getargs_I
194 self.assertRaises(TypeError, getargs_I, 3.14)
195 self.assertEqual(99, getargs_I(Int()))
196 self.assertEqual(0, getargs_I(IntSubclass()))
197 self.assertRaises(TypeError, getargs_I, BadInt())
199 self.assertEqual(1, getargs_I(BadInt2()))
200 self.assertEqual(0, getargs_I(BadInt3()))
202 self.assertEqual(UINT_MAX, getargs_I(-1))
203 self.assertEqual(0, getargs_I(0))
204 self.assertEqual(UINT_MAX, getargs_I(UINT_MAX))
[all …]
/external/python/cpython2/Lib/test/
Dtest_getargs2.py181 from _testcapi import getargs_I
183 self.assertRaises(TypeError, getargs_I, 3.14)
184 self.assertEqual(99, getargs_I(Long()))
185 self.assertEqual(99, getargs_I(Int()))
187 self.assertEqual(UINT_MAX, getargs_I(-1))
188 self.assertEqual(0, getargs_I(0))
189 self.assertEqual(UINT_MAX, getargs_I(UINT_MAX))
190 self.assertEqual(0, getargs_I(UINT_MAX+1))
192 self.assertEqual(42, getargs_I(42))
193 self.assertEqual(42, getargs_I(42L))
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1121 getargs_I(PyObject *self, PyObject *args) in getargs_I() function
2707 {"getargs_I", getargs_I, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1102 getargs_I(PyObject *self, PyObject *args) in getargs_I() function
4640 {"getargs_I", getargs_I, METH_VARARGS},