diff --git a/pandas/tests/dtypes/test_concat.py b/pandas/tests/dtypes/test_concat.py index f624c56b54001..772dfdfe8fb03 100644 --- a/pandas/tests/dtypes/test_concat.py +++ b/pandas/tests/dtypes/test_concat.py @@ -38,7 +38,9 @@ def test_concat_periodarray_2d(): result = _concat.concat_compat([arr[:, :2], arr[:, 2:]], axis=1) tm.assert_period_array_equal(result, arr) - msg = "all the input array dimensions for the concatenation axis must match exactly" + msg = ( + "all the input array dimensions.* for the concatenation axis must match exactly" + ) with pytest.raises(ValueError, match=msg): _concat.concat_compat([arr[:, :2], arr[:, 2:]], axis=0)