[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

STINNER Victor report at bugs.python.org
Thu Feb 13 11:37:51 CET 2014


STINNER Victor added the comment:

When Python is executed in an empty environement, not only it displays "Fatal Python error: Failed to initialize Windows random API (CryptoGen)", but it opens also the fatal error popup on Windows.

The issue #19983 proposes a patch to not abort() at exit, but exit with an non-zero exit code instead. The same should be done for this error.

By the way, we can maybe help the use to fix this issue with a better error message. For example, add in the message " (check if SYSTEMROOT environment variable is correctly set)", maybe only if the environment variable is not set.

----------

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


More information about the Python-bugs-list mailing list