We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dda3b6 commit 27ca72fCopy full SHA for 27ca72f
1 file changed
Lib/test/test_hashlib.py
@@ -331,7 +331,8 @@ def test_clinic_signature_errors(self):
331
with self.subTest(digest_name, args=args, kwds=kwds):
332
with self.assertRaisesRegex(TypeError, errmsg):
333
hashlib.new(digest_name, *args, **kwds)
334
- if self._hashlib:
+ if (self._hashlib and
335
+ digest_name in self._hashlib._constructors):
336
337
self._hashlib.new(digest_name, *args, **kwds)
338
0 commit comments