@@ -297,7 +297,6 @@ def test_regex_replace_dict_nested_non_first_character(
297297 expected = DataFrame ({"first" : [".bc" , "bc." , "c.b" ]}, dtype = dtype )
298298 tm .assert_frame_equal (result , expected )
299299
300- @pytest .mark .xfail (using_string_dtype (), reason = "can't set float into string" )
301300 def test_regex_replace_dict_nested_gh4115 (self ):
302301 df = DataFrame ({"Type" : ["Q" , "T" , "Q" , "Q" , "T" ], "tmp" : 2 })
303302 expected = DataFrame ({"Type" : [0 , 1 , 0 , 0 , 1 ], "tmp" : 2 })
@@ -556,7 +555,6 @@ def test_replace_series_dict(self):
556555 result = df .replace (s , df .mean ())
557556 tm .assert_frame_equal (result , expected )
558557
559- @pytest .mark .xfail (using_string_dtype (), reason = "can't set float into string" )
560558 def test_replace_convert (self ):
561559 # gh 3907
562560 df = DataFrame ([["foo" , "bar" , "bah" ], ["bar" , "foo" , "bah" ]])
@@ -960,7 +958,6 @@ def test_replace_limit(self):
960958 # TODO
961959 pass
962960
963- @pytest .mark .xfail (using_string_dtype (), reason = "can't set float into string" )
964961 def test_replace_dict_no_regex (self ):
965962 answer = Series (
966963 {
@@ -1102,7 +1099,6 @@ def test_replace_swapping_bug(self, using_infer_string):
11021099 expect = DataFrame ({"a" : ["Y" , "N" , "Y" ]})
11031100 tm .assert_frame_equal (res , expect )
11041101
1105- @pytest .mark .xfail (using_string_dtype (), reason = "can't set float into string" )
11061102 def test_replace_period (self ):
11071103 d = {
11081104 "fname" : {
@@ -1139,7 +1135,6 @@ def test_replace_period(self):
11391135 result = df .replace (d )
11401136 tm .assert_frame_equal (result , expected )
11411137
1142- @pytest .mark .xfail (using_string_dtype (), reason = "can't set float into string" )
11431138 def test_replace_datetime (self ):
11441139 d = {
11451140 "fname" : {
@@ -1641,7 +1636,6 @@ def test_regex_replace_scalar(
16411636 expected .loc [expected ["a" ] == "." , "a" ] = expected_replace_val
16421637 tm .assert_frame_equal (result , expected )
16431638
1644- @pytest .mark .xfail (using_string_dtype (), reason = "can't set float into string" )
16451639 @pytest .mark .parametrize ("regex" , [False , True ])
16461640 def test_replace_regex_dtype_frame (self , regex ):
16471641 # GH-48644
0 commit comments