[issue39327] shutil.rmtree using vagrant synched folder fails

2020-01-14 Thread Peter Liedholm
New submission from Peter Liedholm : Python 3.6.9 Ubuntu 18.04 python3 -c 'import shutil; shutil.rmtree("1a")' Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.6/shutil.py", line 486, in rmtree _rmtree_safe_fd(fd, p

[issue39327] shutil.rmtree using vagrant synched folder fails

2020-01-14 Thread Peter Liedholm
Peter Liedholm added the comment: Problem is also reported in virtualbox https://www.virtualbox.org/ticket/19004 >From that ticket some more analysis is done; strace reveals that Python has kept an open fd for the directory being remo

[issue39340] shutil.rmtree and write protected files

2020-01-15 Thread Peter Liedholm
New submission from Peter Liedholm : Ubuntu 18.4 and Windows 7 has different behaviour when deleting write protected files with rmtree. Ubuntu silently deletes them (unexpected?) Windows moans about access denied (expected?) Reproduction method linux mkdir test; touch test/file.txt; chmod -w

[issue39340] shutil.rmtree and write protected files

2020-01-27 Thread Peter Liedholm
Peter Liedholm added the comment: What I would expect is a consistent behaviour and as a user I am not interested in inner guts of differences between filesystems. Regards /Peter -- ___ Python tracker <https://bugs.python.org/issue39