Failing test in Travis

19 views
Skip to first unread message

chris bertinato

unread,
Aug 28, 2017, 7:46:17ā€ÆAM8/28/17
to PyData
Has anyone had issues with this failing test in Travis in the first job target (3.5_OSX)?

_____________________ TestCategoricalIndex.test_reindexing _____________________

[gw1] darwin -- Python 3.5.4 /Users/travis/miniconda3/envs/pandas/bin/python

self = <pandas.tests.indexes.test_category.TestCategoricalIndex object at 0x1168e54a8>

def test_reindexing(self):

ci = self.create_index()

oidx = Index(np.array(ci))

for n in [1, 2, 5, len(ci)]:

finder = oidx[np.random.randint(0, len(ci), size=n)]

expected = oidx.get_indexer_non_unique(finder)[0]

actual = ci.get_indexer(finder)

> tm.assert_numpy_array_equal(expected, actual)

pandas/tests/indexes/test_category.py:389:


The error is:

> raise AssertionError(msg)

E AssertionError: numpy array are different

E

E numpy array shapes are different

E [left]: (14,)

E [right]: (6,)

pandas/util/testing.py:1105: AssertionError

I have seen this test pass, squashed the commits, and then fail. Then reset back to the commit for which it passed, and it would fail.


CB

Joris Van den Bossche

unread,
Aug 28, 2017, 7:50:29ā€ÆAM8/28/17
to PyData
So, on other PRs, don't worry about this failure.

Joris

--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chris bertinato

unread,
Aug 28, 2017, 9:12:44ā€ÆAM8/28/17
to PyData
Thanks a ton. Missed that post.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages