|
14 | 14 | from pandas import (Series, DataFrame, Panel, MultiIndex, Int64Index, |
15 | 15 | RangeIndex, Categorical, bdate_range, |
16 | 16 | date_range, timedelta_range, Index, DatetimeIndex, |
17 | | - isna, compat, concat, Timestamp, _np_version_under1p15) |
| 17 | + isna, compat, concat, Timestamp) |
18 | 18 |
|
19 | 19 | import pandas.util.testing as tm |
20 | 20 | import pandas.util._test_decorators as td |
@@ -2192,9 +2192,9 @@ def test_unimplemented_dtypes_table_columns(self): |
2192 | 2192 | pytest.raises(TypeError, store.append, 'df_unimplemented', df) |
2193 | 2193 |
|
2194 | 2194 | @pytest.mark.skipif( |
2195 | | - not _np_version_under1p15, |
2196 | | - reason=("pytables conda build package needs build " |
2197 | | - "with numpy 1.15: gh-22098")) |
| 2195 | + LooseVersion(np.__version__) == LooseVersion('1.15.0'), |
| 2196 | + reason=("Skipping pytables test when numpy version is " |
| 2197 | + "exactly equal to 1.15.0: gh-22098")) |
2198 | 2198 | def test_calendar_roundtrip_issue(self): |
2199 | 2199 |
|
2200 | 2200 | # 8591 |
|
0 commit comments