New submission from Antoine Pitrou:

support.rmtree doesn't work under Windows when there are symlinks (the symlinks 
aren't deleted anymore), while shutil.rmtree() works fine:

>>> support.rmtree("@test_2160_tmp")
>>> os.listdir("@test_2160_tmp")
['dirA', 'dirB', 'dirC', 'fileA', 'linkA', 'linkB']
>>> shutil.rmtree("@test_2160_tmp")
>>> os.listdir("@test_2160_tmp")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: [WinError 3] The system cannot find the path specified: 
'@test_2160_tmp'

This breaks the pathlib tests under Windows with symlink privileges held.

----------
assignee: brian.curtin
components: Library (Lib), Tests
messages: 203085
nosy: brian.curtin, pitrou, tim.golden
priority: normal
severity: normal
stage: needs patch
status: open
title: support.rmtree fails on symlinks under Windows
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19629>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to