Home
last modified time | relevance | path

Searched refs:getargs_t_hash (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py624 from _testcapi import getargs_t_hash
625 self.assertEqual(getargs_t_hash('abc\xe9'), 'abc\xe9')
626 self.assertEqual(getargs_t_hash(u'abc'), 'abc')
627 self.assertEqual(getargs_t_hash('nul:\0'), 'nul:\0')
628 self.assertEqual(getargs_t_hash(u'nul:\0'), 'nul:\0')
629 self.assertRaises(TypeError, getargs_t_hash, bytearray('bytearray'))
630 self.assertRaises(TypeError, getargs_t_hash, memoryview('memoryview'))
632 self.assertEqual(getargs_t_hash(buffer('abc\xe9')), 'abc\xe9')
633 self.assertEqual(getargs_t_hash(buffer(u'abc')), 'abc')
634 self.assertRaises(TypeError, getargs_t_hash, None)
/external/python/cpython2/Modules/
D_testcapimodule.c1342 getargs_t_hash(PyObject *self, PyObject *args) in getargs_t_hash() function
2732 {"getargs_t_hash", getargs_t_hash, METH_VARARGS},