We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e2a0ae commit 2455fb9Copy full SHA for 2455fb9
pandas/tests/copy_view/test_constructors.py
@@ -1,6 +1,8 @@
1
import numpy as np
2
import pytest
3
4
+from pandas._config import using_string_dtype
5
+
6
import pandas as pd
7
from pandas import (
8
DataFrame,
@@ -248,7 +250,15 @@ def test_dataframe_from_dict_of_series_with_reindex(dtype):
248
250
([1, 2], "int64"),
249
251
# 1D-only EA
252
([1, 2], "Int64"),
- (["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
+ ),
262
(["a", "b"], object),
263
# 2D EA
264
(
0 commit comments