diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index de4a132e0d613..59a30fc69905f 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -15,7 +15,8 @@ from pandas.compat import lrange, product from pandas import (compat, isna, notna, DataFrame, Series, - MultiIndex, date_range, Timestamp, Categorical) + MultiIndex, date_range, Timestamp, Categorical, + _np_version_under1p15) import pandas as pd import pandas.core.nanops as nanops import pandas.core.algorithms as algorithms @@ -2057,6 +2058,9 @@ def test_clip_against_list_like(self, inplace, lower, axis, res): result = original tm.assert_frame_equal(result, expected, check_exact=True) + @pytest.mark.xfail( + not _np_version_under1p15, + reason="failing under numpy-dev gh-19976") @pytest.mark.parametrize("axis", [0, 1, None]) def test_clip_against_frame(self, axis): df = DataFrame(np.random.randn(1000, 2))