[issue35332] shutil.rmtree(..., ignore_errors=True) doesn't ignore errors from os.close()

Serhiy Storchaka report at bugs.python.org
Tue Dec 15 03:20:47 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I am wondering whether we should silence that error in os.close() unconditionally.

In what circumstances the error is raised? Can it be reproduced on Linux (by monkey-patching os.rmdir)? What can happen in worst case when the error is ignored?

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35332>
_______________________________________


More information about the Python-bugs-list mailing list