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 | 846 from _testcapi import getargs_es_hash 847 self.assertEqual(getargs_es_hash('abc\xe9'), b'abc\xc3\xa9') 848 self.assertEqual(getargs_es_hash('abc\xe9', 'latin1'), b'abc\xe9') 849 self.assertRaises(UnicodeEncodeError, getargs_es_hash, 'abc\xe9', 'ascii') 850 self.assertRaises(LookupError, getargs_es_hash, 'abc\xe9', 'spam') 851 self.assertRaises(TypeError, getargs_es_hash, b'bytes', 'latin1') 852 self.assertRaises(TypeError, getargs_es_hash, bytearray(b'bytearray'), 'latin1') 853 self.assertRaises(TypeError, getargs_es_hash, memoryview(b'memoryview'), 'latin1') 854 self.assertRaises(TypeError, getargs_es_hash, None, 'latin1') 855 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 | 1486 getargs_es_hash(PyObject *self, PyObject *args) in getargs_es_hash() function 4676 {"getargs_es_hash", getargs_es_hash, METH_VARARGS},
|