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 | 832 from _testcapi import getargs_et 833 self.assertEqual(getargs_et('abc\xe9'), b'abc\xc3\xa9') 834 self.assertEqual(getargs_et('abc\xe9', 'latin1'), b'abc\xe9') 835 self.assertRaises(UnicodeEncodeError, getargs_et, 'abc\xe9', 'ascii') 836 self.assertRaises(LookupError, getargs_et, 'abc\xe9', 'spam') 837 self.assertEqual(getargs_et(b'bytes', 'latin1'), b'bytes') 838 self.assertEqual(getargs_et(bytearray(b'bytearray'), 'latin1'), b'bytearray') 839 self.assertRaises(TypeError, getargs_et, memoryview(b'memoryview'), 'latin1') 840 self.assertRaises(TypeError, getargs_et, None, 'latin1') 841 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 | 1470 getargs_et(PyObject *self, PyObject *args) in getargs_et() function 4675 {"getargs_et", getargs_et, METH_VARARGS},
|