Skip to content

Commit 7145fe4

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 8e0c20b commit 7145fe4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/frame/test_arithmetic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# -*- coding: utf-8 -*-
22

33
import numpy as np
4+
import pytest
45

56
import pandas as pd
67
import pandas.util.testing as tm
78

89

910
class TestPeriodFrameArithmetic(object):
1011

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

0 commit comments

Comments
 (0)