This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eloff
Recipients Eloff, pitrou
Date 2009-06-14.16:51:41
SpamBayes Score 0.000223659
Marked as misclassified No
Message-id <>
If you're missing any hash algorithm from openssl (say sha224) and the
corresponding _sha224 module, hashlib will fail to import and no hash
algorithms will be available.

Additionally, if no (or only some) openssl algorithms are available, the
error branch expects every hash algorithm to be present in it's own
module, if even one is missing, hashlib will fail to import.

Producing a test case for these without mock objects is difficult at
best. I leave that to the python team, if they desire to do so.

Here is a rewritten, without that ugly mess of code and
without the above two bugs. It passes all tests.
Date User Action Args
2009-06-14 16:51:45Eloffsetrecipients: + Eloff, pitrou
2009-06-14 16:51:45Eloffsetmessageid: <>
2009-06-14 16:51:44Elofflinkissue6281 messages
2009-06-14 16:51:44Eloffcreate