99import numpy as np
1010import pytest
1111
12+ from pandas ._config import using_string_dtype
13+
1214from pandas ._libs import iNaT
1315from pandas .errors import InvalidIndexError
1416
@@ -174,6 +176,7 @@ def test_getitem_boolean(self, mixed_float_frame, mixed_int_frame, datetime_fram
174176 if bif [c ].dtype != bifw [c ].dtype :
175177 assert bif [c ].dtype == df [c ].dtype
176178
179+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
177180 def test_getitem_boolean_casting (self , datetime_frame ):
178181 # don't upcast if we don't need to
179182 df = datetime_frame .copy ()
@@ -501,6 +504,7 @@ def test_setitem_ambig(self, using_infer_string):
501504 else :
502505 assert dm [2 ].dtype == np .object_
503506
507+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
504508 def test_setitem_None (self , float_frame , using_infer_string ):
505509 # GH #766
506510 float_frame [None ] = float_frame ["A" ]
@@ -1121,6 +1125,7 @@ def test_setitem_with_unaligned_tz_aware_datetime_column(self):
11211125 df .loc [[0 , 1 , 2 ], "dates" ] = column [[1 , 0 , 2 ]]
11221126 tm .assert_series_equal (df ["dates" ], column )
11231127
1128+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
11241129 def test_loc_setitem_datetimelike_with_inference (self ):
11251130 # GH 7592
11261131 # assignment of timedeltas with NaT
@@ -1143,6 +1148,7 @@ def test_loc_setitem_datetimelike_with_inference(self):
11431148 )
11441149 tm .assert_series_equal (result , expected )
11451150
1151+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
11461152 def test_getitem_boolean_indexing_mixed (self ):
11471153 df = DataFrame (
11481154 {
@@ -1871,6 +1877,7 @@ def test_adding_new_conditional_column_with_string(dtype, infer_string) -> None:
18711877 tm .assert_frame_equal (df , expected )
18721878
18731879
1880+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
18741881def test_add_new_column_infer_string ():
18751882 # GH#55366
18761883 pytest .importorskip ("pyarrow" )
0 commit comments