Skip to content

Commit 2455fb9

Browse files
TST/CI: temporary xfail test_dataframe_from_series_or_index case for infer_string=False build (pandas-dev#64024)
1 parent 1e2a0ae commit 2455fb9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pandas/tests/copy_view/test_constructors.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import numpy as np
22
import pytest
33

4+
from pandas._config import using_string_dtype
5+
46
import pandas as pd
57
from pandas import (
68
DataFrame,
@@ -248,7 +250,15 @@ def test_dataframe_from_dict_of_series_with_reindex(dtype):
248250
([1, 2], "int64"),
249251
# 1D-only EA
250252
([1, 2], "Int64"),
251-
(["a", "b"], "str"),
253+
pytest.param(
254+
["a", "b"],
255+
"str",
256+
marks=pytest.mark.xfail(
257+
reason="TODO bug with infer_string=False and specifying dtype='str'"
258+
)
259+
if not using_string_dtype()
260+
else [],
261+
),
252262
(["a", "b"], object),
253263
# 2D EA
254264
(

0 commit comments

Comments
 (0)