Commit 02d3516
committed
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 GH-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()
```1 parent 57befd1 commit 02d3516
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1162 | 1164 | | |
1163 | 1165 | | |
1164 | 1166 | | |
| |||
0 commit comments