======================================================================
FAIL: test_expand_user (pandas.io.tests.test_common.TestCommonIOCapabilities)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pandas-0.17.0/work/pandas-0.17.0-python3_4/lib/pandas/io/tests/test_common.py", line 20, in test_expand_user
self.assertTrue(isabs(expanded_name))
AssertionError: False is not true
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.1.8-lh
machine: x86_64
processor: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
byteorder: little
LC_ALL: None
LANG: en_GB.utf8
pandas: 0.17.0
nose: 1.3.7
Cython: 0.23.3
numpy: 1.9.3
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.0
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.6
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.4.3
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.4
lxml: 3.4.4
bs4: 4.4.1
html5lib: 0.9999999
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.8
pymysql: 0.6.6.None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
happens the same way with python3.3. Py2 untested yet.
Comment From: jreback
this was changed here: https://github.com/pydata/pandas/pull/11120, for 'other' platforms (meaning non-macosx/windows/linux)
suppose your locale makes this not work correctly
cc @yarikoptic
Comment From: yarikoptic
well -- could you please run it with --pdb-failures and then printout what is actually the value of expanded_name? ;)
Comment From: jlec
@yarikoptic It's ./sometest
Comment From: yarikoptic
I guess it did "expand" it... and your HOME env var was '.', correct? ;)
$> python -c 'import os; print os.path.expanduser("~/buga")'
/home/yoh/buga
$> HOME=. python -c 'import os; print os.path.expanduser("~/buga")'
./buga
before we proceed we could decide either such value for HOME is legit... and depending on the decision then decide what to do with expand_user -- must it expand to abs path? or keep as is and fix up the test?
Comment From: jlec
Correct, for what ever reason we are testing with HOME=.
Comment From: jbrockmendel
closeable?
Comment From: TomAugspurger
It still fails with HOME=.
. If someone wants to adjust the test, that's fine, but I don't think it's worth keeping an issue open.