Skip to content

Commit

Permalink
fixed pytest deprecation warning (pandas-dev#19987)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaveshpoddar94 authored and jreback committed Mar 5, 2018
1 parent 058a16c commit cbffd19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,10 +1224,11 @@ def test_values_consistent(array, expected_type, dtype):
(pd.DatetimeIndex(['2017-01-01T00:00:00'], tz="US/Eastern"),
np.array(['2017-01-01T05:00:00'], dtype='M8[ns]')),
(pd.TimedeltaIndex([10**10]), np.array([10**10], dtype='m8[ns]')),
pytest.mark.xfail(reason='PeriodArray not implemented')((
pytest.param(
pd.PeriodIndex(['2017', '2018'], freq='D'),
np.array([17167, 17532]),
)),
marks=pytest.mark.xfail(reason="Not implemented")
),
])
def test_ndarray_values(array, expected):
l_values = pd.Series(array)._ndarray_values
Expand Down

0 comments on commit cbffd19

Please sign in to comment.