Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns

'SHA1' instead of 'SHA'.
Add more tests for hashlib and hash object attributes
This commit is contained in:
Christian Heimes 2013-07-30 15:35:54 +02:00
commit d49a371e91
3 changed files with 65 additions and 17 deletions

View file

@ -411,7 +411,7 @@ SHA1_get_block_size(PyObject *self, void *closure)
static PyObject *
SHA1_get_name(PyObject *self, void *closure)
{
return PyUnicode_FromStringAndSize("SHA1", 3);
return PyUnicode_FromStringAndSize("SHA1", 4);
}
static PyObject *