Searched refs:getargs_et (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 699 from _testcapi import getargs_et 700 self.assertEqual(getargs_et('abc\xe9'), 'abc\xe9') 701 self.assertEqual(getargs_et(u'abc'), 'abc') 702 self.assertEqual(getargs_et('abc', 'ascii'), 'abc') 703 self.assertEqual(getargs_et('abc\xe9', 'ascii'), 'abc\xe9') 704 self.assertEqual(getargs_et(u'abc\xe9', 'latin1'), 'abc\xe9') 705 self.assertRaises(UnicodeEncodeError, getargs_et, u'abc\xe9', 'ascii') 706 self.assertRaises(LookupError, getargs_et, u'abc', 'spam') 707 self.assertRaises(TypeError, getargs_et, 709 self.assertRaises(TypeError, getargs_et, [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 931 from _testcapi import getargs_et 932 self.assertEqual(getargs_et('abc\xe9'), b'abc\xc3\xa9') 933 self.assertEqual(getargs_et('abc\xe9', 'latin1'), b'abc\xe9') 934 self.assertRaises(UnicodeEncodeError, getargs_et, 'abc\xe9', 'ascii') 935 self.assertRaises(LookupError, getargs_et, 'abc\xe9', 'spam') 936 self.assertEqual(getargs_et(b'bytes', 'latin1'), b'bytes') 937 self.assertEqual(getargs_et(bytearray(b'bytearray'), 'latin1'), b'bytearray') 938 self.assertRaises(TypeError, getargs_et, memoryview(b'memoryview'), 'latin1') 939 self.assertRaises(TypeError, getargs_et, None, 'latin1') 940 self.assertRaises(TypeError, getargs_et, 'nul:\0', 'latin1') [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1499 getargs_et(PyObject *self, PyObject *args) in getargs_et() function 2744 {"getargs_et", getargs_et, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1505 getargs_et(PyObject *self, PyObject *args) in getargs_et() function 5412 {"getargs_et", getargs_et, METH_VARARGS},
|