Searched refs:getargs_et_hash (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 748 from _testcapi import getargs_et_hash 749 self.assertEqual(getargs_et_hash('abc\xe9'), 'abc\xe9') 750 self.assertEqual(getargs_et_hash(u'abc'), 'abc') 751 self.assertEqual(getargs_et_hash('abc\xe9', 'ascii'), 'abc\xe9') 752 self.assertEqual(getargs_et_hash(u'abc\xe9', 'latin1'), 'abc\xe9') 753 self.assertRaises(UnicodeEncodeError, getargs_et_hash, 755 self.assertRaises(LookupError, getargs_et_hash, u'abc', 'spam') 756 self.assertRaises(TypeError, getargs_et_hash, 758 self.assertRaises(TypeError, getargs_et_hash, 761 self.assertEqual(getargs_et_hash(buffer('abc'), 'ascii'), 'abc') [all …]
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 1529 getargs_et_hash(PyObject *self, PyObject *args) in getargs_et_hash() function 2560 {"getargs_et_hash", getargs_et_hash, METH_VARARGS},
|