@@ -195,13 +195,6 @@ def test_str_cat_categorical(self, box, dtype_caller, dtype_target):
195
195
result = s .str .cat (t )
196
196
assert_series_or_index_equal (result , expected )
197
197
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
-
205
198
@pytest .mark .parametrize ('box' , [Series , Index ])
206
199
def test_str_cat_mixed_inputs (self , box ):
207
200
s = Index (['a' , 'b' , 'c' , 'd' ])
@@ -312,13 +305,6 @@ def test_str_cat_mixed_inputs(self, box):
312
305
with tm .assert_raises_regex (TypeError , rgx ):
313
306
s .str .cat (1 )
314
307
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
-
322
308
@pytest .mark .parametrize ('join' , ['left' , 'outer' , 'inner' , 'right' ])
323
309
@pytest .mark .parametrize ('box' , [Series , Index ])
324
310
def test_str_cat_align_indexed (self , box , join ):
0 commit comments