[issue18756] os.urandom() fails under high load

Charles-François Natali report at bugs.python.org
Fri Aug 16 19:29:08 CEST 2013


Charles-François Natali added the comment:

> Attaching a patch to make error reporting better.

Why didn't you include ENODEV?
Apparently it can be reported in some corner cases, e.g. in this patch:
http://lfs-matrix.net/patches/downloads/linux/linux-2.6.14.2-pseudo_random-1.patch

Otherwise, wouldn't self.addCleanup be simpler than the large
try/finally block in the test (but it's not available on 2.7)?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18756>
_______________________________________


More information about the Python-bugs-list mailing list