|
26 | 26 | from pandas.compat.numpy_compat import np_datetime64_compat |
27 | 27 |
|
28 | 28 | from pandas import (Series, DataFrame, |
29 | | - _np_version_under1p9, _np_version_under1p11) |
| 29 | + _np_version_under1p9, _np_version_under1p12) |
30 | 30 | from pandas import tslib |
31 | 31 | from pandas.util.testing import (assert_series_equal, assert_almost_equal, |
32 | 32 | assertRaisesRegexp) |
@@ -2607,8 +2607,9 @@ def test_range_slice_day(self): |
2607 | 2607 | didx = DatetimeIndex(start='2013/01/01', freq='D', periods=400) |
2608 | 2608 | pidx = PeriodIndex(start='2013/01/01', freq='D', periods=400) |
2609 | 2609 |
|
2610 | | - # changed to TypeError in 1.11 |
2611 | | - exc = IndexError if _np_version_under1p11 else TypeError |
| 2610 | + # changed to TypeError in 1.12 |
| 2611 | + # https://github.com/numpy/numpy/pull/6271 |
| 2612 | + exc = IndexError if _np_version_under1p12 else TypeError |
2612 | 2613 |
|
2613 | 2614 | for idx in [didx, pidx]: |
2614 | 2615 | # slices against index should raise IndexError |
@@ -2664,8 +2665,9 @@ def test_range_slice_seconds(self): |
2664 | 2665 | periods=4000) |
2665 | 2666 | pidx = PeriodIndex(start='2013/01/01 09:00:00', freq='S', periods=4000) |
2666 | 2667 |
|
2667 | | - # changed to TypeError in 1.11 |
2668 | | - exc = IndexError if _np_version_under1p11 else TypeError |
| 2668 | + # changed to TypeError in 1.12 |
| 2669 | + # https://github.com/numpy/numpy/pull/6271 |
| 2670 | + exc = IndexError if _np_version_under1p12 else TypeError |
2669 | 2671 |
|
2670 | 2672 | for idx in [didx, pidx]: |
2671 | 2673 | # slices against index should raise IndexError |
|
0 commit comments