[New-bugs-announce] [issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

Israel Fruchter report at bugs.python.org
Sun Nov 6 17:34:31 EST 2016


New submission from Israel Fruchter:

this fails on python3.5-alpine and python3.6-alpine
(works as fine in python2.7-alpine)

cd /bug && ln -s /broken_path/to_nowhere broken
python -c "import shutil; shutil.copytree('/bug', '/temp', symlinks=True)"

Dockerfile example here:
https://github.com/docker-library/python/issues/155

https://github.com/python/cpython/blob/c30098c8c6014f3340a369a31df9c74bdbacc269/Lib/shutil.py#L198

seem like its suppressing NotImplementedError, and in our case OsError with ENOSUP was raised

----------
components: Library (Lib)
messages: 280178
nosy: fruch
priority: normal
severity: normal
status: open
title: [alpine] shutil.copytree fail to copy a direcotry with broken symlinks
type: behavior
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28627>
_______________________________________


More information about the New-bugs-announce mailing list