diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py index 899daf488638a0..ec6123bae327e9 100644 --- a/pandas/tests/reshape/test_concat.py +++ b/pandas/tests/reshape/test_concat.py @@ -975,7 +975,8 @@ def test_append_different_columns_types_raises( msg = (r"unorderable types: (Interval|int)\(\) > " r"(int|long|float|str)\(\)|" r"Expected tuple, got (int|long|float|str)|" - r"Cannot compare type 'Timestamp' with type '(int|long)'") + r"Cannot compare type 'Timestamp' with type '(int|long)'|" + r"'>' not supported between instances of 'int' and 'str'") with pytest.raises(TypeError, match=msg): df.append(ser)