This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brian.curtin, pitrou, tim.golden
Date 2013-11-16.21:23:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384636992.45.0.350630415261.issue19629@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-16 21:23:12pitrousetrecipients: + pitrou, tim.golden, brian.curtin
2013-11-16 21:23:12pitrousetmessageid: <1384636992.45.0.350630415261.issue19629@psf.upfronthosting.co.za>
2013-11-16 21:23:12pitroulinkissue19629 messages
2013-11-16 21:23:12pitroucreate