Home
last modified time | relevance | path

Searched refs:getargs_et_hash (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py749 from _testcapi import getargs_et_hash
750 self.assertEqual(getargs_et_hash('abc\xe9'), 'abc\xe9')
751 self.assertEqual(getargs_et_hash(u'abc'), 'abc')
752 self.assertEqual(getargs_et_hash('abc\xe9', 'ascii'), 'abc\xe9')
753 self.assertEqual(getargs_et_hash(u'abc\xe9', 'latin1'), 'abc\xe9')
754 self.assertRaises(UnicodeEncodeError, getargs_et_hash,
756 self.assertRaises(LookupError, getargs_et_hash, u'abc', 'spam')
757 self.assertRaises(TypeError, getargs_et_hash,
759 self.assertRaises(TypeError, getargs_et_hash,
762 self.assertEqual(getargs_et_hash(buffer('abc'), 'ascii'), 'abc')
[all …]
/external/python/cpython3/Lib/test/
Dtest_getargs2.py969 from _testcapi import getargs_et_hash
970 self.assertEqual(getargs_et_hash('abc\xe9'), b'abc\xc3\xa9')
971 self.assertEqual(getargs_et_hash('abc\xe9', 'latin1'), b'abc\xe9')
972 self.assertRaises(UnicodeEncodeError, getargs_et_hash, 'abc\xe9', 'ascii')
973 self.assertRaises(LookupError, getargs_et_hash, 'abc\xe9', 'spam')
974 self.assertEqual(getargs_et_hash(b'bytes', 'latin1'), b'bytes')
975 self.assertEqual(getargs_et_hash(bytearray(b'bytearray'), 'latin1'), b'bytearray')
976 self.assertRaises(TypeError, getargs_et_hash, memoryview(b'memoryview'), 'latin1')
977 self.assertRaises(TypeError, getargs_et_hash, None, 'latin1')
978 self.assertEqual(getargs_et_hash('nul:\0', 'latin1'), b'nul:\0')
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1539 getargs_et_hash(PyObject *self, PyObject *args) in getargs_et_hash() function
2746 {"getargs_et_hash", getargs_et_hash, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1544 getargs_et_hash(PyObject *self, PyObject *args) in getargs_et_hash() function
5414 {"getargs_et_hash", getargs_et_hash, METH_VARARGS},