Searched refs:getargs_es_hash (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 719 from _testcapi import getargs_es_hash 720 self.assertEqual(getargs_es_hash('abc'), 'abc') 721 self.assertEqual(getargs_es_hash(u'abc'), 'abc') 722 self.assertEqual(getargs_es_hash(u'abc\xe9', 'latin1'), 'abc\xe9') 723 self.assertRaises(UnicodeEncodeError, getargs_es_hash, u'abc\xe9', 'ascii') 724 self.assertRaises(LookupError, getargs_es_hash, u'abc', 'spam') 725 self.assertRaises(TypeError, getargs_es_hash, 727 self.assertRaises(TypeError, getargs_es_hash, 730 self.assertEqual(getargs_es_hash(buffer('abc'), 'ascii'), 'abc') 731 self.assertEqual(getargs_es_hash(buffer(u'abc'), 'ascii'), 'abc') [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 938 from _testcapi import getargs_es_hash 939 self.assertEqual(getargs_es_hash('abc\xe9'), b'abc\xc3\xa9') 940 self.assertEqual(getargs_es_hash('abc\xe9', 'latin1'), b'abc\xe9') 941 self.assertRaises(UnicodeEncodeError, getargs_es_hash, 'abc\xe9', 'ascii') 942 self.assertRaises(LookupError, getargs_es_hash, 'abc\xe9', 'spam') 943 self.assertRaises(TypeError, getargs_es_hash, b'bytes', 'latin1') 944 self.assertRaises(TypeError, getargs_es_hash, bytearray(b'bytearray'), 'latin1') 945 self.assertRaises(TypeError, getargs_es_hash, memoryview(b'memoryview'), 'latin1') 946 self.assertRaises(TypeError, getargs_es_hash, None, 'latin1') 947 self.assertEqual(getargs_es_hash('nul:\0', 'latin1'), b'nul:\0') [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1515 getargs_es_hash(PyObject *self, PyObject *args) in getargs_es_hash() function 2745 {"getargs_es_hash", getargs_es_hash, METH_VARARGS},
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1651 getargs_es_hash(PyObject *self, PyObject *args) in getargs_es_hash() function 5746 {"getargs_es_hash", getargs_es_hash, METH_VARARGS},
|