Skip to content

Commit 9d2d770

Browse files
authored
TST(string dtype): Resolve xfail with apply returning an ndarray (#60636)
1 parent 8fbe6ac commit 9d2d770

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/tests/frame/methods/test_dtypes.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import numpy as np
44
import pytest
55

6-
from pandas._config import using_string_dtype
7-
86
from pandas.core.dtypes.dtypes import DatetimeTZDtype
97

108
import pandas as pd
@@ -135,13 +133,9 @@ def test_dtypes_timedeltas(self):
135133
)
136134
tm.assert_series_equal(result, expected)
137135

138-
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
139136
def test_frame_apply_np_array_return_type(self, using_infer_string):
140137
# GH 35517
141138
df = DataFrame([["foo"]])
142139
result = df.apply(lambda col: np.array("bar"))
143-
if using_infer_string:
144-
expected = Series([np.array(["bar"])])
145-
else:
146-
expected = Series(["bar"])
140+
expected = Series(np.array("bar"))
147141
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)