-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
TST: Use intp as expected dtype in IntervalIndex indexing tests #23609
Conversation
Hello @jschendel! Thanks for submitting the PR.
|
Codecov Report
@@ Coverage Diff @@
## master #23609 +/- ##
=======================================
Coverage 92.25% 92.25%
=======================================
Files 161 161
Lines 51260 51260
=======================================
Hits 47290 47290
Misses 3970 3970
Continue to review full report at Codecov.
|
thanks |
https://travis-ci.org/MacPython/pandas-wheels/jobs/453170919 it’s possible this ran before the merge or it’s still broken |
* upstream/master: TST: Use intp as expected dtype in IntervalIndex indexing tests (pandas-dev#23609)
I think it ran before the merge. The ______ TestIntervalIndex.test_get_reindexer_datetimelike[datetime64[ns]] _______ self = arrays = (DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04'], dtype='datetime64[ns]', freq='D'), DatetimeIndex(['2018-01-03', '2018-01-04', '2018-01-05', '2018-01-06'], dtype='datetime64[ns]', freq='D')) @pytest.mark.parametrize('arrays', [ (date_range('20180101', periods=4), date_range('20180103', periods=4)), (date_range('20180101', periods=4, tz='US/Eastern'), date_range('20180103', periods=4, tz='US/Eastern')), (timedelta_range('0 days', periods=4), timedelta_range('2 days', periods=4))], ids=lambda x: str(x[0].dtype)) def test_get_reindexer_datetimelike(self, arrays): # GH 20636 index = IntervalIndex.from_arrays(*arrays) tuples = [(index[0].left, index[0].left + pd.Timedelta('12H')), (index[-1].right - pd.Timedelta('12H'), index[-1].right)] target = IntervalIndex.from_tuples(tuples) result = index._get_reindexer(target) expected = np.array([0, 3], dtype='int64') > tm.assert_numpy_array_equal(result, expected) E AssertionError: numpy array are different E E Attribute "dtype" are different E [left]: int32 E [right]: int64 |
…fixed * upstream/master: DOC: Fixes to docstring to add validation to CI (pandas-dev#23560) DOC: Remove incorrect periods at the end of parameter types (pandas-dev#23600) MAINT: tm.assert_raises_regex --> pytest.raises (pandas-dev#23592) DOC: Updating Series.resample and DataFrame.resample docstrings (pandas-dev#23197) ENH: Support for partition_cols in to_parquet (pandas-dev#23321) TST: Use intp as expected dtype in IntervalIndex indexing tests (pandas-dev#23609)
xref #23468 (comment): fixes some failing 32bit tests