Giampaolo Rodola' <g.rod...@gmail.com> added the comment: > For convenience, a handler that retries unlink() and rmdir() could be > distributed with shutil. For ease of use, it could be enabled by default on > Windows.
+1 on that. I bumped into this many times over the years as occasional and hardly reproducible test failures when cleaning up test files/dirs. The tricky part is how to distinguish a legitimate "directory is not empty" error though. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33240> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com