Message203085
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. |
|
Date |
User |
Action |
Args |
2013-11-16 21:23:12 | pitrou | set | recipients:
+ pitrou, tim.golden, brian.curtin |
2013-11-16 21:23:12 | pitrou | set | messageid: <1384636992.45.0.350630415261.issue19629@psf.upfronthosting.co.za> |
2013-11-16 21:23:12 | pitrou | link | issue19629 messages |
2013-11-16 21:23:12 | pitrou | create | |
|