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.00022365894
Marked as misclassified No
Message-id <1244998305.43.0.650826409337.issue6281@psf.upfronthosting.co.za>
In-reply-to
Content
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 hashlib.py, without that ugly mess of code and
without the above two bugs. It passes all tests.
History
Date User Action Args
2009-06-14 16:51:45Eloffsetrecipients: + Eloff, pitrou
2009-06-14 16:51:45Eloffsetmessageid: <1244998305.43.0.650826409337.issue6281@psf.upfronthosting.co.za>
2009-06-14 16:51:44Elofflinkissue6281 messages
2009-06-14 16:51:44Eloffcreate