Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_getargs2.py781 from _testcapi import getargs_u
782 self.assertEqual(getargs_u(u'abc\xe9'), u'abc\xe9')
783 self.assertRaises(TypeError, getargs_u, u'nul:\0')
784 self.assertRaises(TypeError, getargs_u, 'bytes')
785 self.assertRaises(TypeError, getargs_u, bytearray('bytearray'))
786 self.assertRaises(TypeError, getargs_u, memoryview('memoryview'))
788 self.assertRaises(TypeError, getargs_u, buffer('buffer'))
789 self.assertRaises(TypeError, getargs_u, None)
/external/python/cpython3/Lib/test/
Dtest_getargs2.py896 from _testcapi import getargs_u
897 self.assertEqual(getargs_u('abc\xe9'), 'abc\xe9')
898 self.assertRaises(ValueError, getargs_u, 'nul:\0')
899 self.assertRaises(TypeError, getargs_u, b'bytes')
900 self.assertRaises(TypeError, getargs_u, bytearray(b'bytearray'))
901 self.assertRaises(TypeError, getargs_u, memoryview(b'memoryview'))
902 self.assertRaises(TypeError, getargs_u, None)
/external/python/cpython2/Modules/
D_testcapimodule.c1460 getargs_u(PyObject *self, PyObject *args) in getargs_u() function
2740 {"getargs_u", getargs_u, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1410 getargs_u(PyObject *self, PyObject *args) in getargs_u() function
4669 {"getargs_u", getargs_u, METH_VARARGS},