Skip to content

Commit 6667bf1

Browse files
committed
TST: xfails unary neg of timeperiod
Current arithmetic tests for timeperiod dtype uses unary negative to test expected output. Whether to allow this and how is currently under discussion (see GH 19297). Until consensus is reached, test will be marked as expected to fail.
1 parent fb0e532 commit 6667bf1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/frame/test_arithmetic.py

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

33
import pytest
44
import numpy as np
5+
import pytest
56

67
import pandas as pd
78
import pandas.util.testing as tm
@@ -111,6 +112,8 @@ def test_df_radd_str(self):
111112

112113
class TestPeriodFrameArithmetic(object):
113114

115+
@pytest.mark.xfail(reason="Unary negative is currently not permitted "
116+
"for objects of type TimePeriod, see GH 19297")
114117
def test_ops_frame_period(self):
115118
# GH 13043
116119
df = pd.DataFrame({'A': [pd.Period('2015-01', freq='M'),

0 commit comments

Comments
 (0)