Skip to content
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

tseries and TestSeries test errors on Python 3.3 and OSX #11232

Closed
matthew-brett opened this issue Oct 4, 2015 · 4 comments · Fixed by #11252
Closed

tseries and TestSeries test errors on Python 3.3 and OSX #11232

matthew-brett opened this issue Oct 4, 2015 · 4 comments · Fixed by #11252
Labels
Testing pandas testing functions or related to the test suite
Milestone

Comments

@matthew-brett
Copy link
Contributor

Building and testing OSX wheels for 0.17.0, I am getting these errors on Python 3.3 (not 2.7 or 3.4 or 3.5):

======================================================================
FAIL: test_isin (pandas.tseries.tests.test_timedeltas.TestTimedeltaIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/travis/build/MacPython/pandas-wheels/venv/lib/python3.3/site-packages/pandas/tseries/tests/test_timedeltas.py", line 1406, in test_isin
    self.assertTrue(result.all())
AssertionError: False is not true

======================================================================
FAIL: test_isin (pandas.tseries.tests.test_timeseries.TestDatetimeIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/travis/build/MacPython/pandas-wheels/venv/lib/python3.3/site-packages/pandas/tseries/tests/test_timeseries.py", line 2923, in test_isin
    self.assertTrue(result.all())
AssertionError: False is not true

======================================================================
FAIL: test_isin_with_i8 (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/travis/build/MacPython/pandas-wheels/venv/lib/python3.3/site-packages/pandas/tests/test_series.py", line 7268, in test_isin_with_i8
    assert_series_equal(result, expected)
  File "/Users/travis/build/MacPython/pandas-wheels/venv/lib/python3.3/site-packages/pandas/util/testing.py", line 925, in assert_series_equal
    check_less_precise, obj='{0}'.format(obj))
  File "pandas/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3809)
  File "pandas/src/testing.pyx", line 147, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2685)
  File "/Users/travis/build/MacPython/pandas-wheels/venv/lib/python3.3/site-packages/pandas/util/testing.py", line 798, in raise_assert_detail
    raise AssertionError(msg)
AssertionError: Series are different

Series values are different (40.0 %)
[left]:  [False, False, False, False, False]
[right]: [True, True, False, False, False]

Full log at https://s3.amazonaws.com/archive.travis-ci.org/jobs/83497520/log.txt

I think I'm testing with the same parameters as the Linux test runs. Am I missing something?

@jreback
Copy link
Contributor

jreback commented Oct 4, 2015

can you show pd.show_versions() on this setup. I cannot repro on py3.3 macosx.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Oct 4, 2015
@matthew-brett
Copy link
Contributor Author

I just set a run going with python -c 'import pandas; pandas.show_versions()' added:

https://travis-ci.org/MacPython/pandas-wheels/jobs/83722994

Is it possible it's the numpy version? Python 3.3 tests against 1.7.1, but 3.4 and 3.5 test against latest numpy (because of some other incompatibilities).

@matthew-brett
Copy link
Contributor Author

I can reproduce on my local machine with numpy==1.7.1, no failures for numpy==1.8.1.

@jreback
Copy link
Contributor

jreback commented Oct 6, 2015

I found it
some really odd numpy / cython behavior with numpy 1.7.1

matthew-brett added a commit to MacPython/pandas-wheels that referenced this issue Oct 6, 2015
@jreback jreback added this to the 0.17.0 milestone Oct 6, 2015
jreback added a commit that referenced this issue Oct 6, 2015
COMPAT/PERF: lib.ismember_int64 on older numpies/cython not comparing correctly #11232
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
2 participants