[issue20599] test_cleanup() of test_builtin failed

STINNER Victor report at bugs.python.org
Wed Feb 12 18:31:43 CET 2014


STINNER Victor added the comment:

> Sorry, issue20599_ascii_ioencoding.patch doesn't fix the issue.

Sorry again, I didn't read issue20599_ascii_ioencoding.patch carefully: it doesn't make sense to use the isolated mode and to set a Python environment variable (PYTHONIOENCODING). The purpose of the isolated mode is to ignore all Python environment variables...

I (hope I) fixed the test, but in fact, the test showed another bug: print() cannot be used during Python exit in destructor. It means for example that Python may not be able to display errors at exit.

I don't know if this issue should be closed. Maybe a new issue should be opened to address the codec issue at exit?

----------

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


More information about the Python-bugs-list mailing list