Skip to content

Commit 17fa385

Browse files
authored
Apply batched suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 6d4988a commit 17fa385

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/test/test_hashlib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def test_new_upper_to_lower(self):
381381
def test_name_attribute_without_nid(self):
382382
# OpenSSL 3 provider digest without NID.
383383
# See https://github.com/python/cpython/issues/162712.
384-
h = _hashlib.new("SHA256-192")
384+
h = hashlib.new("SHA256-192")
385385
self.assertNotEqual(h.name, "undefined")
386386
self.assertEqual(h.name, h.name.lower())
387387
self.assertEqual(hashlib.new(h.name).name, h.name)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:mod:`hashlib`: the :attr:`~hashlib.hash.name` of OpenSSL hash objects whose
1+
:mod:`hashlib`: the :attr:`name <hashlib.hash.name>` of OpenSSL hash objects whose
22
digest has no OpenSSL NID, such as ``SHA256-192``, is now the lowercase name
33
given by the OpenSSL provider instead of ``"undefined"``.
44
Patch by Bénédikt Tran.

0 commit comments

Comments
 (0)