[issue4265] shutil.copyfile() leaks file descriptors when disk fills
STINNER Victor
report at bugs.python.org
Wed May 5 02:44:38 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Could you write a test? Use a fake file objects that raise (or not) an IOError on close(), and then check that close() was closed on both files. There are 4 cases: input.close() raises or not an exception, output.close() raises or not an exception.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4265>
_______________________________________
More information about the Python-bugs-list
mailing list