[issue14768] os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
Bradley Froehle
report at bugs.python.org
Thu May 10 04:25:19 CEST 2012
New submission from Bradley Froehle <brad.froehle at gmail.com>:
When $HOME=/, os.path.expanduser('~/a') returns '//a' rather than '/a'.
This regression was created by a partially incorrect resolution to issue #5471, and affects versions 2.7 and 3.2 (at least).
$ HOME=/ python2.7 -c "import os; print os.path.expanduser('~/a')"
//a
$ HOME=/ python3.2 -c "import os; print(os.path.expanduser('~/a'))"
//a
In each case the expected result should be '/a'.
----------
components: Library (Lib)
messages: 160321
nosy: bfroehle
priority: normal
severity: normal
status: open
title: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
versions: Python 2.7, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14768>
_______________________________________
More information about the Python-bugs-list
mailing list