@@ -115,8 +115,8 @@ def test_add(dtype):
115
115
tm .assert_series_equal (result , expected )
116
116
117
117
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 :
120
120
reason = "Failed: DID NOT RAISE <class 'ValueError'>"
121
121
mark = pytest .mark .xfail (raises = None , reason = reason )
122
122
request .node .add_marker (mark )
@@ -144,8 +144,8 @@ def test_add_sequence(dtype):
144
144
tm .assert_extension_array_equal (result , expected )
145
145
146
146
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 :
149
149
reason = "unsupported operand type(s) for *: 'ArrowStringArray' and 'int'"
150
150
mark = pytest .mark .xfail (raises = NotImplementedError , reason = reason )
151
151
request .node .add_marker (mark )
@@ -369,8 +369,8 @@ def test_min_max(method, skipna, dtype, request):
369
369
370
370
@pytest .mark .parametrize ("method" , ["min" , "max" ])
371
371
@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 :
374
374
if box is pd .array :
375
375
reason = "'<=' not supported between instances of 'str' and 'NoneType'"
376
376
else :
@@ -384,7 +384,7 @@ def test_min_max_numpy(method, box, dtype, request):
384
384
assert result == expected
385
385
386
386
387
- def test_fillna_args (dtype , request ):
387
+ def test_fillna_args (dtype , request , arrow_string_storage ):
388
388
# GH 37987
389
389
390
390
arr = pd .array (["a" , pd .NA ], dtype = dtype )
@@ -397,7 +397,7 @@ def test_fillna_args(dtype, request):
397
397
expected = pd .array (["a" , "b" ], dtype = dtype )
398
398
tm .assert_extension_array_equal (res , expected )
399
399
400
- if dtype .storage == "pyarrow" :
400
+ if dtype .storage in arrow_string_storage :
401
401
msg = "Invalid value '1' for dtype string"
402
402
else :
403
403
msg = "Cannot set non-string value '1' into a StringArray."
@@ -503,10 +503,10 @@ def test_use_inf_as_na(values, expected, dtype):
503
503
tm .assert_frame_equal (result , expected )
504
504
505
505
506
- def test_memory_usage (dtype ):
506
+ def test_memory_usage (dtype , arrow_string_storage ):
507
507
# GH 33963
508
508
509
- if dtype .storage == "pyarrow" :
509
+ if dtype .storage in arrow_string_storage :
510
510
pytest .skip (f"not applicable for { dtype .storage } " )
511
511
512
512
series = pd .Series (["a" , "b" , "c" ], dtype = dtype )
0 commit comments