Skip to content

Commit cd8cca1

Browse files
committed
xfail on np 1.17
1 parent c5c8de1 commit cd8cca1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/sparse/test_pivot.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import pandas as pd
55
import pandas.util.testing as tm
6+
from pandas import _np_version_under1p17
67

78

89
@pytest.mark.filterwarnings("ignore:Sparse:FutureWarning")
@@ -48,6 +49,8 @@ def test_pivot_table(self):
4849
# values='E', aggfunc='sum')
4950
# tm.assert_frame_equal(res_sparse, res_dense)
5051

52+
@pytest.mark.xfail(not _np_version_under1p17,
53+
reason="failing occasionally on numpy > 1.17")
5154
def test_pivot_table_multi(self):
5255
res_sparse = pd.pivot_table(self.sparse, index='A', columns='B',
5356
values=['D', 'E'])

0 commit comments

Comments
 (0)