[New-bugs-announce] [issue19629] support.rmtree fails on symlinks under Windows

Antoine Pitrou report at bugs.python.org
Sat Nov 16 22:23:12 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19629>
_______________________________________


More information about the New-bugs-announce mailing list