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.py870 from _testcapi import getargs_et_hash
871 self.assertEqual(getargs_et_hash('abc\xe9'), b'abc\xc3\xa9')
872 self.assertEqual(getargs_et_hash('abc\xe9', 'latin1'), b'abc\xe9')
873 self.assertRaises(UnicodeEncodeError, getargs_et_hash, 'abc\xe9', 'ascii')
874 self.assertRaises(LookupError, getargs_et_hash, 'abc\xe9', 'spam')
875 self.assertEqual(getargs_et_hash(b'bytes', 'latin1'), b'bytes')
876 self.assertEqual(getargs_et_hash(bytearray(b'bytearray'), 'latin1'), b'bytearray')
877 self.assertRaises(TypeError, getargs_et_hash, memoryview(b'memoryview'), 'latin1')
878 self.assertRaises(TypeError, getargs_et_hash, None, 'latin1')
879 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.c1509 getargs_et_hash(PyObject *self, PyObject *args) in getargs_et_hash() function
4677 {"getargs_et_hash", getargs_et_hash, METH_VARARGS},