Searched refs:getargs_es (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 680 from _testcapi import getargs_es 681 self.assertEqual(getargs_es('abc'), 'abc') 682 self.assertEqual(getargs_es(u'abc'), 'abc') 683 self.assertEqual(getargs_es('abc', 'ascii'), 'abc') 684 self.assertEqual(getargs_es(u'abc\xe9', 'latin1'), 'abc\xe9') 685 self.assertRaises(UnicodeEncodeError, getargs_es, u'abc\xe9', 'ascii') 686 self.assertRaises(LookupError, getargs_es, u'abc', 'spam') 687 self.assertRaises(TypeError, getargs_es, 689 self.assertRaises(TypeError, getargs_es, 692 self.assertEqual(getargs_es(buffer('abc'), 'ascii'), 'abc') [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 820 from _testcapi import getargs_es 821 self.assertEqual(getargs_es('abc\xe9'), b'abc\xc3\xa9') 822 self.assertEqual(getargs_es('abc\xe9', 'latin1'), b'abc\xe9') 823 self.assertRaises(UnicodeEncodeError, getargs_es, 'abc\xe9', 'ascii') 824 self.assertRaises(LookupError, getargs_es, 'abc\xe9', 'spam') 825 self.assertRaises(TypeError, getargs_es, b'bytes', 'latin1') 826 self.assertRaises(TypeError, getargs_es, bytearray(b'bytearray'), 'latin1') 827 self.assertRaises(TypeError, getargs_es, memoryview(b'memoryview'), 'latin1') 828 self.assertRaises(TypeError, getargs_es, None, 'latin1') 829 self.assertRaises(TypeError, getargs_es, 'nul:\0', 'latin1')
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1483 getargs_es(PyObject *self, PyObject *args) in getargs_es() function 2743 {"getargs_es", getargs_es, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1454 getargs_es(PyObject *self, PyObject *args) in getargs_es() function 4674 {"getargs_es", getargs_es, METH_VARARGS},
|