Skip to content

Commit

Permalink
Silence a bottleneck warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Aug 20, 2018
1 parent fbdb206 commit b985127
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xarray/tests/test_dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -3532,6 +3532,8 @@ def test_rolling_reduce(da, center, min_periods, window, name):
@pytest.mark.parametrize('min_periods', (None, 1, 2, 3))
@pytest.mark.parametrize('window', (1, 2, 3, 4))
@pytest.mark.parametrize('name', ('sum', 'max'))
@pytest.mark.filterwarnings('ignore:Using a non-tuple sequence')
# root cause of the warning is bottleneck
def test_rolling_reduce_nonnumeric(center, min_periods, window, name):
da = DataArray([0, np.nan, 1, 2, np.nan, 3, 4, 5, np.nan, 6, 7],
dims='time').isnull()
Expand Down

0 comments on commit b985127

Please sign in to comment.