@@ -115,8 +115,8 @@ def test_add(dtype):
115115 tm .assert_series_equal (result , expected )
116116
117117
118- def test_add_2d (dtype , request ):
119- if dtype .storage == "pyarrow" :
118+ def test_add_2d (dtype , request , arrow_string_storage ):
119+ if dtype .storage in arrow_string_storage :
120120 reason = "Failed: DID NOT RAISE <class 'ValueError'>"
121121 mark = pytest .mark .xfail (raises = None , reason = reason )
122122 request .node .add_marker (mark )
@@ -144,8 +144,8 @@ def test_add_sequence(dtype):
144144 tm .assert_extension_array_equal (result , expected )
145145
146146
147- def test_mul (dtype , request ):
148- if dtype .storage == "pyarrow" :
147+ def test_mul (dtype , request , arrow_string_storage ):
148+ if dtype .storage in arrow_string_storage :
149149 reason = "unsupported operand type(s) for *: 'ArrowStringArray' and 'int'"
150150 mark = pytest .mark .xfail (raises = NotImplementedError , reason = reason )
151151 request .node .add_marker (mark )
@@ -369,8 +369,8 @@ def test_min_max(method, skipna, dtype, request):
369369
370370@pytest .mark .parametrize ("method" , ["min" , "max" ])
371371@pytest .mark .parametrize ("box" , [pd .Series , pd .array ])
372- def test_min_max_numpy (method , box , dtype , request ):
373- if dtype .storage == "pyarrow" and box is pd .array :
372+ def test_min_max_numpy (method , box , dtype , request , arrow_string_storage ):
373+ if dtype .storage in arrow_string_storage and box is pd .array :
374374 if box is pd .array :
375375 reason = "'<=' not supported between instances of 'str' and 'NoneType'"
376376 else :
@@ -384,7 +384,7 @@ def test_min_max_numpy(method, box, dtype, request):
384384 assert result == expected
385385
386386
387- def test_fillna_args (dtype , request ):
387+ def test_fillna_args (dtype , request , arrow_string_storage ):
388388 # GH 37987
389389
390390 arr = pd .array (["a" , pd .NA ], dtype = dtype )
@@ -397,7 +397,7 @@ def test_fillna_args(dtype, request):
397397 expected = pd .array (["a" , "b" ], dtype = dtype )
398398 tm .assert_extension_array_equal (res , expected )
399399
400- if dtype .storage == "pyarrow" :
400+ if dtype .storage in arrow_string_storage :
401401 msg = "Invalid value '1' for dtype string"
402402 else :
403403 msg = "Cannot set non-string value '1' into a StringArray."
@@ -503,10 +503,10 @@ def test_use_inf_as_na(values, expected, dtype):
503503 tm .assert_frame_equal (result , expected )
504504
505505
506- def test_memory_usage (dtype ):
506+ def test_memory_usage (dtype , arrow_string_storage ):
507507 # GH 33963
508508
509- if dtype .storage == "pyarrow" :
509+ if dtype .storage in arrow_string_storage :
510510 pytest .skip (f"not applicable for { dtype .storage } " )
511511
512512 series = pd .Series (["a" , "b" , "c" ], dtype = dtype )
0 commit comments