Skip to content

Commit 7cd79a5

Browse files
update test
1 parent 8349551 commit 7cd79a5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pandas/tests/strings/test_strings.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,13 @@ def test_isnumeric_unicode(method, expected, any_string_dtype):
282282
tm.assert_series_equal(result, expected)
283283

284284
# compare with standard library
285-
expected = [getattr(item, method)() for item in ser]
286-
assert list(result) == expected
285+
# (only for non-pyarrow storage given the above differences)
286+
if any_string_dtype == "object" or (
287+
isinstance(any_string_dtype, StringDtype)
288+
and any_string_dtype.storage == "python"
289+
):
290+
expected = [getattr(item, method)() for item in ser]
291+
assert list(result) == expected
287292

288293

289294
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)