Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: fixed check _is_unorderable_exception
With upgrade to NumPy 1.13.2 the error message raised when comparing unorderable types changes from using "'>' not supported between instances of" to using "'<' not supported between instances of". This PR checks of these. See pandas-devGH-17046 for discussion. This caused failing test test_basic_indexing. Here is the reproducer ``` import pandas import pytest import numpy as np def test_basic_indexing(): s = pandas.Series(np.random.randn(5), index=['a', 'b', 'a', 'a', 'b']) pytest.raises(IndexError, s.__getitem__, 5) pytest.raises(IndexError, s.__setitem__, 5, 0) pytest.raises(KeyError, s.__getitem__, 'c') s = s.sort_index() pytest.raises(IndexError, s.__getitem__, 5) pytest.raises(IndexError, s.__setitem__, 5, 0) # this part was failing test_basic_indexing() ```
- Loading branch information