[issue10512] regrtest ResourceWarning - unclosed sockets and files

STINNER Victor report at bugs.python.org
Thu Jan 6 03:23:45 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

test___all__ just loads ALL modules... and it doesn't unload them. I patched test___all__ to unload modules: the "ResourceWarning: unclosed file ... '/dev/null' ..." disappears, but a new error occurs. The multiprocessing module registers _exit_function() in the atexit module. If this module is unloaded, the callback stays in atexit, but the callback will raise an error when it is called because all module variables were cleared (set to None)...

----------

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


More information about the Python-bugs-list mailing list