Home
last modified time | relevance | path

Searched refs:getargs_es (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py679 from _testcapi import getargs_es
680 self.assertEqual(getargs_es('abc'), 'abc')
681 self.assertEqual(getargs_es(u'abc'), 'abc')
682 self.assertEqual(getargs_es('abc', 'ascii'), 'abc')
683 self.assertEqual(getargs_es(u'abc\xe9', 'latin1'), 'abc\xe9')
684 self.assertRaises(UnicodeEncodeError, getargs_es, u'abc\xe9', 'ascii')
685 self.assertRaises(LookupError, getargs_es, u'abc', 'spam')
686 self.assertRaises(TypeError, getargs_es,
688 self.assertRaises(TypeError, getargs_es,
691 self.assertEqual(getargs_es(buffer('abc'), 'ascii'), 'abc')
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1473 getargs_es(PyObject *self, PyObject *args) in getargs_es() function
2557 {"getargs_es", getargs_es, METH_VARARGS},