-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Updated condition to skip for pytables build issue on numpy 1.15 #22098 #22522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
966741d
583211f
cc2ea5b
90690bf
d6cba4c
b252c1e
3337b74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
from pandas import (Series, DataFrame, Panel, MultiIndex, Int64Index, | ||
RangeIndex, Categorical, bdate_range, | ||
date_range, timedelta_range, Index, DatetimeIndex, | ||
isna, compat, concat, Timestamp, _np_version_under1p15) | ||
isna, compat, concat, Timestamp) | ||
|
||
import pandas.util.testing as tm | ||
import pandas.util._test_decorators as td | ||
|
@@ -2192,9 +2192,9 @@ def test_unimplemented_dtypes_table_columns(self): | |
pytest.raises(TypeError, store.append, 'df_unimplemented', df) | ||
|
||
@pytest.mark.skipif( | ||
not _np_version_under1p15, | ||
reason=("pytables conda build package needs build " | ||
"with numpy 1.15: gh-22098")) | ||
LooseVersion(np.__version__) == LooseVersion('1.15'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you need 1.15.0 here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can use StrictVersion here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right. I see LooseVersion('1.15') and LooseVersion('1.15.0') are not equal. But, StrictVersion('1.15') and Strict Version('1.15.0') are equal. We can use StrictVersion, in that we can use '1.15' or '1.15.0'. If we are using LooseVersion, then it should be '1.15.0'. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it safe to use StrictVersion then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have made changes with LooseVersion('1.15.0'). I think this will suffice. Please let me know if we have to use StrictVersion instead. @jreback @TomAugspurger |
||
reason=("Skipping pytables test when numpy version is " | ||
"exactly equal to 1.15: gh-22098")) | ||
def test_calendar_roundtrip_issue(self): | ||
|
||
# 8591 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't define anything new here, juse use LooseVersion explicity to check for 1.15.0 as this is the only version affected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed it. Could you please have a look at it @jreback. let me know if changes required.