[issue20654] Pydoc (and help) fails with socket.AddressFamily

Serhiy Storchaka report at bugs.python.org
Mon Feb 17 17:57:29 CET 2014


Serhiy Storchaka added the comment:

The fix itself looks good, but the test can be better. You write temporary file in current directory. this can fail for different reasons, Python can crash and left undeleted file, this file can overwrite existing file. The render_doc() function is last module level function in a traceback, and it can be used for testing, temporary file will be not needed.

----------

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


More information about the Python-bugs-list mailing list