@@ -195,13 +195,6 @@ def test_str_cat_categorical(self, box, dtype_caller, dtype_target):
195195 result = s .str .cat (t )
196196 assert_series_or_index_equal (result , expected )
197197
198- # errors for inputs not consisting of strings (also when categorical)
199- rgx = 'All columns in others must contain only strings.*'
200-
201- # data with non-object dtype
202- with tm .assert_raises_regex (TypeError , rgx ):
203- s .str .cat (Series ([1 , 2 , 3 , 4 ]))
204-
205198 @pytest .mark .parametrize ('box' , [Series , Index ])
206199 def test_str_cat_mixed_inputs (self , box ):
207200 s = Index (['a' , 'b' , 'c' , 'd' ])
@@ -312,13 +305,6 @@ def test_str_cat_mixed_inputs(self, box):
312305 with tm .assert_raises_regex (TypeError , rgx ):
313306 s .str .cat (1 )
314307
315- # errors for inputs not consisting of strings
316- rgx = 'All columns in others must contain only strings.*'
317-
318- # data with non-object dtype
319- with tm .assert_raises_regex (TypeError , rgx ):
320- s .str .cat (Series ([1 , 2 , 3 , 4 ]))
321-
322308 @pytest .mark .parametrize ('join' , ['left' , 'outer' , 'inner' , 'right' ])
323309 @pytest .mark .parametrize ('box' , [Series , Index ])
324310 def test_str_cat_align_indexed (self , box , join ):
0 commit comments