From 798346c90aa6974aa494063894ce229ffa246aa9 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Tue, 13 Sep 2022 12:55:28 +0200 Subject: [PATCH] Fix py311 builds different exception message --- pandas/tests/dtypes/test_concat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)