Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_getargs2.py523 from _testcapi import getargs_c
524 self.assertRaises(TypeError, getargs_c, 'abc') # len > 1
525 self.assertEqual(getargs_c('a'), 97)
527 self.assertRaises(TypeError, getargs_c, u's')
528 self.assertRaises(TypeError, getargs_c, bytearray('a'))
529 self.assertRaises(TypeError, getargs_c, memoryview('a'))
531 self.assertRaises(TypeError, getargs_c, buffer('a'))
532 self.assertRaises(TypeError, getargs_c, 97)
533 self.assertRaises(TypeError, getargs_c, None)
/external/python/cpython3/Lib/test/
Dtest_getargs2.py700 from _testcapi import getargs_c
701 self.assertRaises(TypeError, getargs_c, b'abc') # len > 1
702 self.assertEqual(getargs_c(b'a'), 97)
703 self.assertEqual(getargs_c(bytearray(b'a')), 97)
704 self.assertRaises(TypeError, getargs_c, memoryview(b'a'))
705 self.assertRaises(TypeError, getargs_c, 's')
706 self.assertRaises(TypeError, getargs_c, 97)
707 self.assertRaises(TypeError, getargs_c, None)
/external/python/cpython2/Modules/
D_testcapimodule.c1302 getargs_c(PyObject *self, PyObject *args) in getargs_c() function
2728 {"getargs_c", getargs_c, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1288 getargs_c(PyObject *self, PyObject *args) in getargs_c() function
4658 {"getargs_c", getargs_c, METH_VARARGS},