Skip to content

test_expand_user failure in 0.17.0 #11297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jlec opened this issue Oct 12, 2015 · 7 comments
Closed

test_expand_user failure in 0.17.0 #11297

jlec opened this issue Oct 12, 2015 · 7 comments
Labels
Testing pandas testing functions or related to the test suite

Comments

@jlec
Copy link
Contributor

jlec commented Oct 12, 2015

======================================================================
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.

@jreback
Copy link
Contributor

jreback commented Oct 12, 2015

this was changed here: #11120, for 'other' platforms (meaning non-macosx/windows/linux)

suppose your locale makes this not work correctly

cc @yarikoptic

@jreback jreback added the Testing pandas testing functions or related to the test suite label Oct 12, 2015
@yarikoptic
Copy link
Contributor

well -- could you please run it with --pdb-failures and then printout what is actually the value of expanded_name? ;)

@jlec
Copy link
Contributor Author

jlec commented Oct 14, 2015

@yarikoptic It's ./sometest

@yarikoptic
Copy link
Contributor

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?

@jlec
Copy link
Contributor Author

jlec commented Oct 15, 2015

Correct, for what ever reason we are testing with HOME=.

@jbrockmendel
Copy link
Member

closeable?

@TomAugspurger
Copy link
Contributor

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.

@TomAugspurger TomAugspurger added this to the No action milestone Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

5 participants