From f4a9b87fe8cbaf81e76bca08728a91e1f96cf02d Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Wed, 7 Mar 2018 08:10:04 -0500 Subject: [PATCH] TST: xfail clip tests under numpy-dev xref #19976 --- pandas/tests/frame/test_analytics.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))