Home
last modified time | relevance | path

Searched refs:getargs_s_hash (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py610 from _testcapi import getargs_s_hash
611 self.assertEqual(getargs_s_hash('abc\xe9'), 'abc\xe9')
612 self.assertEqual(getargs_s_hash(u'abc'), 'abc')
613 self.assertEqual(getargs_s_hash('nul:\0'), 'nul:\0')
614 self.assertEqual(getargs_s_hash(u'nul:\0'), 'nul:\0')
615 self.assertRaises(TypeError, getargs_s_hash, bytearray('bytearray'))
616 self.assertRaises(TypeError, getargs_s_hash, memoryview('memoryview'))
618 self.assertEqual(getargs_s_hash(buffer('abc\xe9')), 'abc\xe9')
619 self.assertEqual(getargs_s_hash(buffer(u'abc\xe9')),
621 self.assertRaises(TypeError, getargs_s_hash, None)
/external/python/cpython3/Lib/test/
Dtest_getargs2.py784 from _testcapi import getargs_s_hash
785 self.assertEqual(getargs_s_hash('abc\xe9'), b'abc\xc3\xa9')
786 self.assertEqual(getargs_s_hash('nul:\0'), b'nul:\0')
787 self.assertEqual(getargs_s_hash(b'bytes'), b'bytes')
788 self.assertRaises(TypeError, getargs_s_hash, bytearray(b'bytearray'))
789 self.assertRaises(TypeError, getargs_s_hash, memoryview(b'memoryview'))
790 self.assertRaises(TypeError, getargs_s_hash, None)
Dtest_unicode.py2861 from _testcapi import getargs_s_hash
2871 self.assertEqual(getargs_s_hash(s), chr(k).encode() * (i + 1))
2873 self.assertEqual(getargs_s_hash(s), chr(k).encode() * (i + 1))
/external/python/cpython2/Modules/
D_testcapimodule.c1332 getargs_s_hash(PyObject *self, PyObject *args) in getargs_s_hash() function
2731 {"getargs_s_hash", getargs_s_hash, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1327 getargs_s_hash(PyObject *self, PyObject *args) in getargs_s_hash() function
4662 {"getargs_s_hash", getargs_s_hash, METH_VARARGS},