Skip to content

sparc: test_round_trip_frame... and test_unsorted_index #4396

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
yarikoptic opened this issue Jul 29, 2013 · 10 comments · Fixed by #5040 or #5043
Closed

sparc: test_round_trip_frame... and test_unsorted_index #4396

yarikoptic opened this issue Jul 29, 2013 · 10 comments · Fixed by #5040 or #5043
Labels
Dtype Conversions Unexpected or buggy dtype conversions Error Reporting Incorrect or improved errors from pandas Testing pandas testing functions or related to the test suite
Milestone

Comments

@yarikoptic
Copy link
Contributor

See at http://nipy.bic.berkeley.edu/builders/pandas-py2.x-sid-sparc/builds/18/steps/shell_4/logs/stdio

and that assert better has some descriptive failure message (or to be replaced with assertEqual/eq_)?

======================================================================
FAIL: test_round_trip_frame (pandas.io.tests.test_clipboard.TestClipboard)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_56_g0d80c79-py2.7-linux-sparc64.egg/pandas/io/tests/test_clipboard.py", line 50, in test_round_trip_frame
    self.check_round_trip_frame(dt)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_56_g0d80c79-py2.7-linux-sparc64.egg/pandas/io/tests/test_clipboard.py", line 46, in check_round_trip_frame
    tm.assert_frame_equal(data, result)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_56_g0d80c79-py2.7-linux-sparc64.egg/pandas/util/testing.py", line 236, in assert_frame_equal
    check_less_precise=check_less_precise)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_56_g0d80c79-py2.7-linux-sparc64.egg/pandas/util/testing.py", line 197, in assert_series_equal
    assert(left.dtype == right.dtype)
AssertionError

======================================================================
FAIL: test_unsorted_index (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_56_g0d80c79-py2.7-linux-sparc64.egg/pandas/tests/test_graphics.py", line 445, in test_unsorted_index
    tm.assert_series_equal(rs, df.y)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_56_g0d80c79-py2.7-linux-sparc64.egg/pandas/util/testing.py", line 197, in assert_series_equal
    assert(left.dtype == right.dtype)
AssertionError

----------------------------------------------------------------------
Ran 3695 tests in 3708.536s

As you might know you can see results of builds/tests on sparc at
http://nipy.bic.berkeley.edu/waterfall?category=pandas . ATM it is polling GIT only once in 5h atm.

@cpcloud
Copy link
Member

cpcloud commented Jul 29, 2013

yes printing out the dtypes here is essential...i have no idea why the clipboard test wouldn't work

@jtratner
Copy link
Contributor

Yeah, there are a number of places where the assert_*_equal methods could be improved.

@jreback
Copy link
Contributor

jreback commented Sep 20, 2013

@cpcloud I think you fixed these?

@cpcloud
Copy link
Member

cpcloud commented Sep 20, 2013

not sure...i'll see if they are still fialing on th waterfall

@jreback
Copy link
Contributor

jreback commented Sep 26, 2013

these still failing?

@yarikoptic
Copy link
Contributor Author

These -- not seems to me, the failing ones are
http://nipy.bic.berkeley.edu/builders/pandas-py2.x-sid-sparc/builds/138/steps/shell_4/logs/stdio

======================================================================
ERROR: test_setitem (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/tests/test_series.py", line 971, in test_setitem
    series[::2] = 0
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/series.py", line 1069, in __setitem__
    self._set_with(key, value)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/series.py", line 1087, in _set_with
    return self._set_values(indexer, value)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/series.py", line 1128, in _set_values
    self._data = self._data.setitem(key,value)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/internals.py", line 2046, in setitem
    return self.apply('setitem', *args, **kwargs)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/internals.py", line 2028, in apply
    applied = getattr(blk, f)(*args, **kwargs)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/internals.py", line 577, in setitem
    values[indexer] = value
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/core/base.py", line 148, in _disabled
    self.__class__)
TypeError: '<class 'pandas.core.index.Index'>' does not support mutable operations.

======================================================================
FAIL: test_append_with_timedelta (pandas.io.tests.test_pytables.TestHDFStore)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/io/tests/test_pytables.py", line 1862, in test_append_with_timedelta
    assert_frame_equal(result,df)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/util/testing.py", line 313, in assert_frame_equal
    assert_index_equal(left.index, right.index)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py2_x-sid-sparc/build/venv/local/lib/python2.7/site-packages/pandas-0.12.0_564_gedbd512-py2.7-linux-sparc64.egg/pandas/util/testing.py", line 192, in assert_index_equal
    right.dtype))
AssertionError: [index] left [int64 Int64Index([0, 1, 2, 6, 7, 8, 9], dtype=int64)], right [Int64Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype=int64) int64]

@yarikoptic
Copy link
Contributor Author

btw -- I have uploaded fresh numexpr and pytables today to sid... I will update sid buildbot so you could see if anything new pops out

@jreback
Copy link
Contributor

jreback commented Sep 26, 2013

can you put a ci/print_versions.py up here?

@yarikoptic
Copy link
Contributor Author

damn -- still haven't added it to buildbot... uff -- should be the same as last time though I mentioned in some report:

$> ci/print_versions.py 

INSTALLED VERSIONS
------------------
Python: 2.7.5.final.0
OS: Linux 2.6.32-5-sparc64-smp #1 SMP Sun May 6 09:31:16 UTC 2012 sparc64
LC_ALL: None
LANG: None

Cython: 0.19.1
Numpy: 1.7.1
Scipy: 0.12.0
statsmodels: 0.4.2
    patsy: 0.2.1
scikits.timeseries: Not installed
dateutil: 1.5
pytz: 2012c
bottleneck: Not installed
PyTables: 2.4.0
    numexpr: 2.0.1
matplotlib: 1.3.0
openpyxl: 1.6.1
xlrd: 0.9.2
xlwt: 0.7.4
sqlalchemy: 0.8.2
lxml: 3.2.0
bs4: 4.2.1
html5lib: 0.95-dev

pytables will probably be built for sparc only by tomorrow so I will update env then

@jtratner
Copy link
Contributor

@yarikoptic as we discussed, you can also do from pandas.util.print_version import show_verison; show_version()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Error Reporting Incorrect or improved errors from pandas Testing pandas testing functions or related to the test suite
Projects
None yet
4 participants