@@ -175,10 +175,6 @@ def test_combine_add(self, data_repeated):
175
175
def test_fillna_length_mismatch (self , data_missing ):
176
176
super ().test_fillna_length_mismatch (data_missing )
177
177
178
- def test_searchsorted (self , data_for_sorting ):
179
- if not data_for_sorting .ordered :
180
- raise pytest .skip (reason = "searchsorted requires ordered data." )
181
-
182
178
183
179
class TestCasting (base .BaseCastingTests ):
184
180
@pytest .mark .parametrize ("cls" , [Categorical , CategoricalIndex ])
@@ -229,21 +225,26 @@ def test_consistent_casting(self, dtype, expected):
229
225
230
226
231
227
class TestArithmeticOps (base .BaseArithmeticOpsTests ):
232
- def test_arith_frame_with_scalar (self , data , all_arithmetic_operators ):
228
+ def test_arith_frame_with_scalar (self , data , all_arithmetic_operators , request ):
233
229
# frame & scalar
234
230
op_name = all_arithmetic_operators
235
- if op_name != "__rmod__" :
236
- super ().test_arith_frame_with_scalar (data , all_arithmetic_operators )
237
- else :
238
- pytest .skip ("rmod never called when string is first argument" )
239
-
240
- def test_arith_series_with_scalar (self , data , all_arithmetic_operators ):
241
-
231
+ if op_name == "__rmod__" :
232
+ request .node .add_marker (
233
+ pytest .mark .xfail (
234
+ reason = "rmod never called when string is first argument"
235
+ )
236
+ )
237
+ super ().test_arith_frame_with_scalar (data , op_name )
238
+
239
+ def test_arith_series_with_scalar (self , data , all_arithmetic_operators , request ):
242
240
op_name = all_arithmetic_operators
243
- if op_name != "__rmod__" :
244
- super ().test_arith_series_with_scalar (data , op_name )
245
- else :
246
- pytest .skip ("rmod never called when string is first argument" )
241
+ if op_name == "__rmod__" :
242
+ request .node .add_marker (
243
+ pytest .mark .xfail (
244
+ reason = "rmod never called when string is first argument"
245
+ )
246
+ )
247
+ super ().test_arith_series_with_scalar (data , op_name )
247
248
248
249
def test_add_series_with_extension_array (self , data ):
249
250
ser = pd .Series (data )
0 commit comments