Skip to content

Commit 151e3d1

Browse files
update expected result for dtype='string'
1 parent c33e14a commit 151e3d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/series/test_constructors.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,9 +2113,12 @@ def test_series_string_inference_array_string_dtype(self):
21132113
tm.assert_series_equal(ser, expected)
21142114

21152115
def test_series_string_inference_storage_definition(self):
2116-
# GH#54793
2116+
# https://github.com/pandas-dev/pandas/issues/54793
2117+
# but after PDEP-14 (string dtype), it was decided to keep dtype="string"
2118+
# returning the NA string dtype, so expected is changed from
2119+
# "string[pyarrow_numpy]" to "string[pyarrow]"
21172120
pytest.importorskip("pyarrow")
2118-
expected = Series(["a", "b"], dtype="string[pyarrow_numpy]")
2121+
expected = Series(["a", "b"], dtype="string[pyarrow]")
21192122
with pd.option_context("future.infer_string", True):
21202123
result = Series(["a", "b"], dtype="string")
21212124
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)