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

Ronal Abraham report at bugs.python.org
Tue Nov 27 14:51:53 EST 2018


New submission from Ronal Abraham <ronalabraham at gmail.com>:

These lines throw intermittently for me on AIX when removing a directory on NFS (python version 3.6.6-1), even when "ignore_errors=True":

https://github.com/python/cpython/blob/v3.6.6rc1/Lib/shutil.py#L433
https://github.com/python/cpython/blob/v3.6.6rc1/Lib/shutil.py#L492

Should there be try-except blocks around these lines and calls to onerror(...)?

----------
components: Library (Lib)
messages: 330553
nosy: rabraham
priority: normal
severity: normal
status: open
title: shutil.rmtree(..., ignore_errors=True) doesn't ignore errors from os.close()
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list