mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
commit
d49a371e91
3 changed files with 65 additions and 17 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue