Skip to content

TST: better testing for test_where (GH8997) #9015

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
wants to merge 1 commit into from

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Dec 5, 2014

closes #8996

@jreback jreback added the Testing pandas testing functions or related to the test suite label Dec 5, 2014
@jreback jreback added this to the 0.15.2 milestone Dec 5, 2014
@yarikoptic
Copy link
Contributor

FWIW, as I have mentioned, not sure how this was supposed to help and here it is (not on current master but on v0.15.1-176-g526f33c as before

(Pdb) tm.assert_numpy_array_equal(result, expected)
*** AssertionError: [(0L, 'a') (1L, 'b') (2L, 'c')] is not equal to [(0L, 'a') (1L, 'b') (2L, 'c')]

@jreback jreback closed this Dec 6, 2014
@juricast
Copy link
Contributor

juricast commented May 5, 2015

Hello,

I can confirm this od Debian build.
I have used a patch from #8996 and I did get the same result as yarikoptic

======================================================================
FAIL: test_to_records (pandas.tests.test_categorical.TestCategoricalAsBlock)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/pandas-HjPP3c/TESTIRAJ_PANDU/2/pandas-0.15.1+git125-ge463818/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_categorical.py", line 2393, in test_to_records
    tm.assert_numpy_array_equal(result,expected)
  File "/build/pandas-HjPP3c/TESTIRAJ_PANDU/2/pandas-0.15.1+git125-ge463818/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 632, in assert_numpy_array_equal
    '{0} is not equal to {1}.'.format(np_array, assert_equal))
AssertionError: [(0L, 'a') (1L, 'b') (2L, 'c')] is not equal to [(0L, 'a') (1L, 'b') (2L, 'c')].

Regards,
Jurica

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

Successfully merging this pull request may close these issues.

test_to_records fails on BE boxes: (0L, 'a') != (0L, 'a')
3 participants