@@ -121,9 +121,9 @@ def test_reduce_series_numeric(self, data, all_numeric_reductions, skipna):
121
121
122
122
123
123
class TestMethods (BaseInterval , base .BaseMethodsTests ):
124
- @pytest .mark .skip (reason = "addition is not defined for intervals" )
124
+ @pytest .mark .xfail (reason = "addition is not defined for intervals" )
125
125
def test_combine_add (self , data_repeated ):
126
- pass
126
+ super (). test_combine_add ( data_repeated )
127
127
128
128
@pytest .mark .xfail (
129
129
reason = "Raises with incorrect message bc it disallows *all* listlikes "
@@ -134,29 +134,31 @@ def test_fillna_length_mismatch(self, data_missing):
134
134
135
135
136
136
class TestMissing (BaseInterval , base .BaseMissingTests ):
137
- # Index.fillna only accepts scalar `value`, so we have to skip all
137
+ # Index.fillna only accepts scalar `value`, so we have to xfail all
138
138
# non-scalar fill tests.
139
- unsupported_fill = pytest .mark .skip ("Unsupported fillna option." )
139
+ unsupported_fill = pytest .mark .xfail (
140
+ reason = "Unsupported fillna option for Interval."
141
+ )
140
142
141
143
@unsupported_fill
142
144
def test_fillna_limit_pad (self ):
143
- pass
145
+ super (). test_fillna_limit_pad ()
144
146
145
147
@unsupported_fill
146
148
def test_fillna_series_method (self ):
147
- pass
149
+ super (). test_fillna_series_method ()
148
150
149
151
@unsupported_fill
150
152
def test_fillna_limit_backfill (self ):
151
- pass
153
+ super (). test_fillna_limit_backfill ()
152
154
153
155
@unsupported_fill
154
156
def test_fillna_no_op_returns_copy (self ):
155
- pass
157
+ super (). test_fillna_no_op_returns_copy ()
156
158
157
159
@unsupported_fill
158
160
def test_fillna_series (self ):
159
- pass
161
+ super (). test_fillna_series ()
160
162
161
163
def test_fillna_non_scalar_raises (self , data_missing ):
162
164
msg = "can only insert Interval objects and NA into an IntervalArray"
@@ -173,9 +175,9 @@ class TestSetitem(BaseInterval, base.BaseSetitemTests):
173
175
174
176
175
177
class TestPrinting (BaseInterval , base .BasePrintingTests ):
176
- @pytest .mark .skip (reason = "custom repr" )
178
+ @pytest .mark .xfail (reason = "Interval has custom repr" )
177
179
def test_array_repr (self , data , size ):
178
- pass
180
+ super (). test_array_repr ()
179
181
180
182
181
183
class TestParsing (BaseInterval , base .BaseParsingTests ):
0 commit comments