@@ -189,11 +189,6 @@ def test_getitem_scalar(self, data):
189
189
# AssertionError
190
190
super ().test_getitem_scalar (data )
191
191
192
- @skip_nested
193
- def test_take_series (self , data ):
194
- # ValueError: PandasArray must be 1-dimensional.
195
- super ().test_take_series (data )
196
-
197
192
198
193
class TestGroupby (BaseNumPyTests , base .BaseGroupbyTests ):
199
194
def test_groupby_extension_apply (
@@ -222,13 +217,6 @@ def test_shift_fill_value(self, data):
222
217
# np.array shape inference. Shift implementation fails.
223
218
super ().test_shift_fill_value (data )
224
219
225
- @skip_nested
226
- @pytest .mark .parametrize ("box" , [pd .Series , lambda x : x ])
227
- @pytest .mark .parametrize ("method" , [lambda x : x .unique (), pd .unique ])
228
- def test_unique (self , data , box , method ):
229
- # Fails creating expected
230
- super ().test_unique (data , box , method )
231
-
232
220
@skip_nested
233
221
def test_fillna_copy_frame (self , data_missing ):
234
222
# The "scalar" for this array isn't a scalar.
@@ -244,31 +232,10 @@ def test_searchsorted(self, data_for_sorting, as_series):
244
232
# Test setup fails.
245
233
super ().test_searchsorted (data_for_sorting , as_series )
246
234
247
- @skip_nested
248
- def test_where_series (self , data , na_value , as_frame ):
249
- # Test setup fails.
250
- super ().test_where_series (data , na_value , as_frame )
251
-
252
- @pytest .mark .parametrize ("repeats" , [0 , 1 , 2 , [1 , 2 , 3 ]])
253
- def test_repeat (self , data , repeats , as_series , use_numpy , request ):
254
- if data .dtype .numpy_dtype == object and repeats != 0 :
255
- mark = pytest .mark .xfail (reason = "mask shapes mismatch" )
256
- request .node .add_marker (mark )
257
- super ().test_repeat (data , repeats , as_series , use_numpy )
258
-
259
235
@pytest .mark .xfail (reason = "PandasArray.diff may fail on dtype" )
260
236
def test_diff (self , data , periods ):
261
237
return super ().test_diff (data , periods )
262
238
263
- @pytest .mark .parametrize ("box" , [pd .array , pd .Series , pd .DataFrame ])
264
- def test_equals (self , data , na_value , as_series , box , request ):
265
- # Fails creating with _from_sequence
266
- if box is pd .DataFrame and data .dtype .numpy_dtype == object :
267
- mark = pytest .mark .xfail (reason = "AssertionError in _get_same_shape_values" )
268
- request .node .add_marker (mark )
269
-
270
- super ().test_equals (data , na_value , as_series , box )
271
-
272
239
273
240
class TestArithmetics (BaseNumPyTests , base .BaseArithmeticOpsTests ):
274
241
divmod_exc = None
@@ -289,8 +256,11 @@ def test_divmod_series_array(self, data):
289
256
def test_arith_series_with_scalar (self , data , all_arithmetic_operators ):
290
257
super ().test_arith_series_with_scalar (data , all_arithmetic_operators )
291
258
292
- @skip_nested
293
- def test_arith_series_with_array (self , data , all_arithmetic_operators ):
259
+ def test_arith_series_with_array (self , data , all_arithmetic_operators , request ):
260
+ opname = all_arithmetic_operators
261
+ if data .dtype .numpy_dtype == object and opname not in ["__add__" , "__radd__" ]:
262
+ mark = pytest .mark .xfail (reason = "Fails for object dtype" )
263
+ request .node .add_marker (mark )
294
264
super ().test_arith_series_with_array (data , all_arithmetic_operators )
295
265
296
266
@skip_nested
@@ -325,11 +295,6 @@ def test_fillna_scalar(self, data_missing):
325
295
# Non-scalar "scalar" values.
326
296
super ().test_fillna_scalar (data_missing )
327
297
328
- @skip_nested
329
- def test_fillna_series_method (self , data_missing , fillna_method ):
330
- # Non-scalar "scalar" values.
331
- super ().test_fillna_series_method (data_missing , fillna_method )
332
-
333
298
@skip_nested
334
299
def test_fillna_series (self , data_missing ):
335
300
# Non-scalar "scalar" values.
@@ -358,20 +323,6 @@ def test_merge(self, data, na_value):
358
323
# Fails creating expected (key column becomes a PandasDtype because)
359
324
super ().test_merge (data , na_value )
360
325
361
- @skip_nested
362
- def test_merge_on_extension_array (self , data ):
363
- # Fails creating expected
364
- super ().test_merge_on_extension_array (data )
365
-
366
- @skip_nested
367
- def test_merge_on_extension_array_duplicates (self , data ):
368
- # Fails creating expected
369
- super ().test_merge_on_extension_array_duplicates (data )
370
-
371
- @skip_nested
372
- def test_transpose_frame (self , data ):
373
- super ().test_transpose_frame (data )
374
-
375
326
376
327
class TestSetitem (BaseNumPyTests , base .BaseSetitemTests ):
377
328
@skip_nested
0 commit comments