@@ -189,11 +189,6 @@ def test_getitem_scalar(self, data):
189189 # AssertionError
190190 super ().test_getitem_scalar (data )
191191
192- @skip_nested
193- def test_take_series (self , data ):
194- # ValueError: PandasArray must be 1-dimensional.
195- super ().test_take_series (data )
196-
197192
198193class TestGroupby (BaseNumPyTests , base .BaseGroupbyTests ):
199194 def test_groupby_extension_apply (
@@ -222,13 +217,6 @@ def test_shift_fill_value(self, data):
222217 # np.array shape inference. Shift implementation fails.
223218 super ().test_shift_fill_value (data )
224219
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-
232220 @skip_nested
233221 def test_fillna_copy_frame (self , data_missing ):
234222 # The "scalar" for this array isn't a scalar.
@@ -244,31 +232,10 @@ def test_searchsorted(self, data_for_sorting, as_series):
244232 # Test setup fails.
245233 super ().test_searchsorted (data_for_sorting , as_series )
246234
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-
259235 @pytest .mark .xfail (reason = "PandasArray.diff may fail on dtype" )
260236 def test_diff (self , data , periods ):
261237 return super ().test_diff (data , periods )
262238
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-
272239
273240class TestArithmetics (BaseNumPyTests , base .BaseArithmeticOpsTests ):
274241 divmod_exc = None
@@ -289,8 +256,11 @@ def test_divmod_series_array(self, data):
289256 def test_arith_series_with_scalar (self , data , all_arithmetic_operators ):
290257 super ().test_arith_series_with_scalar (data , all_arithmetic_operators )
291258
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 )
294264 super ().test_arith_series_with_array (data , all_arithmetic_operators )
295265
296266 @skip_nested
@@ -325,11 +295,6 @@ def test_fillna_scalar(self, data_missing):
325295 # Non-scalar "scalar" values.
326296 super ().test_fillna_scalar (data_missing )
327297
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-
333298 @skip_nested
334299 def test_fillna_series (self , data_missing ):
335300 # Non-scalar "scalar" values.
@@ -358,20 +323,6 @@ def test_merge(self, data, na_value):
358323 # Fails creating expected (key column becomes a PandasDtype because)
359324 super ().test_merge (data , na_value )
360325
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-
375326
376327class TestSetitem (BaseNumPyTests , base .BaseSetitemTests ):
377328 @skip_nested
0 commit comments