Skip to content

Commit d224156

Browse files
committed
update deprecated method
1 parent 142cd0e commit d224156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def test_str_cat_raise_wrong_dtype(self, box):
426426
t = box([1, 2, 3, 4])
427427

428428
msg = 'Can only concatenate list-likes containing only strings.*'
429-
with tm.assert_raises_regex(TypeError, msg):
429+
with pytest.raises(TypeError, match=msg):
430430
s.str.cat(t)
431431

432432
@pytest.mark.parametrize('box', [Series, Index])

0 commit comments

Comments
 (0)