Skip to content

Commit cbffd19

Browse files
bhaveshpoddar94jreback
authored andcommitted
fixed pytest deprecation warning (pandas-dev#19987)
1 parent 058a16c commit cbffd19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/test_base.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1224,10 +1224,11 @@ def test_values_consistent(array, expected_type, dtype):
12241224
(pd.DatetimeIndex(['2017-01-01T00:00:00'], tz="US/Eastern"),
12251225
np.array(['2017-01-01T05:00:00'], dtype='M8[ns]')),
12261226
(pd.TimedeltaIndex([10**10]), np.array([10**10], dtype='m8[ns]')),
1227-
pytest.mark.xfail(reason='PeriodArray not implemented')((
1227+
pytest.param(
12281228
pd.PeriodIndex(['2017', '2018'], freq='D'),
12291229
np.array([17167, 17532]),
1230-
)),
1230+
marks=pytest.mark.xfail(reason="Not implemented")
1231+
),
12311232
])
12321233
def test_ndarray_values(array, expected):
12331234
l_values = pd.Series(array)._ndarray_values

0 commit comments

Comments
 (0)