[issue19629] support.rmtree fails on symlinks under Windows

2014-07-21 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 28bb1aa9ca3d by Victor Stinner in branch '3.4':
Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a
http://hg.python.org/cpython/rev/28bb1aa9ca3d

New changeset e405bcbf761c by Victor Stinner in branch 'default':
Merge Python 3.4
http://hg.python.org/cpython/rev/e405bcbf761c

--
nosy: +python-dev

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2014-07-21 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c026ed24a211 by Victor Stinner in branch '3.4':
Issue #19629: Add missing import stat
http://hg.python.org/cpython/rev/c026ed24a211

New changeset 168cd3d19fef by Victor Stinner in branch 'default':
(Merge 3.4) Issue #19629: Add missing import stat
http://hg.python.org/cpython/rev/168cd3d19fef

--

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2014-07-21 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed
versions: +Python 3.5 -Python 3.3

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-27 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-27 Thread Jeremy Kloth

Jeremy Kloth added the comment:

The attached patch changes support.rmtree to use os.lstat() instead of the 
builtin _isdir() to test for directory-ness of a path.

--
keywords: +patch
Added file: http://bugs.python.org/file32875/symlink.patch

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-27 Thread STINNER Victor

STINNER Victor added the comment:

Why not starting to use pathlib? pathlib.Path(path).resolve().is_dir().

--

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Why not starting to use pathlib? pathlib.Path(path).resolve().is_dir().

I would rather keep using low-level APIs in test support functions.

--

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Note that using shutil.rmtree() means there are sporadic test_pathlib failures 
under Windows:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/3436/steps/test/logs/stdio

--
nosy: +steve.dower

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-24 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +r.david.murray

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-17 Thread Jeremy Kloth

Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:


--
nosy: +jkloth

___
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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-16 Thread Antoine Pitrou

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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

shutil.rmtree() uses os.lstat() while support.rmtree() calls os.path.isdir() 
instead.

--

___
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