checksum.py: detect PyPy crashes in hashlib
authorZac Medico <zmedico@gentoo.org>
Thu, 1 Dec 2011 23:25:31 +0000 (15:25 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 1 Dec 2011 23:25:31 +0000 (15:25 -0800)
commite7a0179ed39f707a42b8c15157bdb3f0aa45dd13
tree7873135cdac75458b769904d8451de5b3c5e3a53
parentb432a1b3051d91546649e8f3190675767461d8e8
checksum.py: detect PyPy crashes in hashlib

Use a fork to try and PyPy by digesting random data with hashlib
functions. It doesn't look like a bug has been reported upstream for
this yet, so it may or may not be reproducible by others. Anyway, this
allows me to avoid crashing the main PyPy process until I find a real
fix.
pym/portage/checksum.py