@@ -53,10 +53,8 @@ def test_contains(any_string_dtype):
53
53
np .array (["Foo" , "xYz" , "fOOomMm__fOo" , "MMM_" ], dtype = object ),
54
54
dtype = any_string_dtype ,
55
55
)
56
- with tm .maybe_produces_warning (
57
- PerformanceWarning , any_string_dtype == "string[pyarrow]"
58
- ):
59
- result = values .str .contains ("FOO|mmm" , case = False )
56
+
57
+ result = values .str .contains ("FOO|mmm" , case = False )
60
58
expected = Series (np .array ([True , False , True , True ]), dtype = expected_dtype )
61
59
tm .assert_series_equal (result , expected )
62
60
@@ -172,10 +170,7 @@ def test_contains_moar(any_string_dtype):
172
170
)
173
171
tm .assert_series_equal (result , expected )
174
172
175
- with tm .maybe_produces_warning (
176
- PerformanceWarning , any_string_dtype == "string[pyarrow]"
177
- ):
178
- result = s .str .contains ("a" , case = False )
173
+ result = s .str .contains ("a" , case = False )
179
174
expected = Series (
180
175
[True , False , False , True , True , False , np .nan , True , False , True ],
181
176
dtype = expected_dtype ,
@@ -196,10 +191,7 @@ def test_contains_moar(any_string_dtype):
196
191
)
197
192
tm .assert_series_equal (result , expected )
198
193
199
- with tm .maybe_produces_warning (
200
- PerformanceWarning , any_string_dtype == "string[pyarrow]"
201
- ):
202
- result = s .str .contains ("ba" , case = False )
194
+ result = s .str .contains ("ba" , case = False )
203
195
expected = Series (
204
196
[False , False , False , True , True , False , np .nan , True , False , False ],
205
197
dtype = expected_dtype ,
@@ -723,10 +715,7 @@ def test_match_na_kwarg(any_string_dtype):
723
715
724
716
def test_match_case_kwarg (any_string_dtype ):
725
717
values = Series (["ab" , "AB" , "abc" , "ABC" ], dtype = any_string_dtype )
726
- with tm .maybe_produces_warning (
727
- PerformanceWarning , any_string_dtype == "string[pyarrow]"
728
- ):
729
- result = values .str .match ("ab" , case = False )
718
+ result = values .str .match ("ab" , case = False )
730
719
expected_dtype = np .bool_ if any_string_dtype == "object" else "boolean"
731
720
expected = Series ([True , True , True , True ], dtype = expected_dtype )
732
721
tm .assert_series_equal (result , expected )
@@ -769,10 +758,7 @@ def test_fullmatch_case_kwarg(any_string_dtype):
769
758
770
759
expected = Series ([True , True , False , False ], dtype = expected_dtype )
771
760
772
- with tm .maybe_produces_warning (
773
- PerformanceWarning , any_string_dtype == "string[pyarrow]"
774
- ):
775
- result = ser .str .fullmatch ("ab" , case = False )
761
+ result = ser .str .fullmatch ("ab" , case = False )
776
762
tm .assert_series_equal (result , expected )
777
763
778
764
with tm .maybe_produces_warning (
0 commit comments