From 0de52d66725f819f61368e01d20b3e37061803c2 Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva Date: Mon, 6 Nov 2023 17:31:35 +0100 Subject: [PATCH] correct error message in test_asfreq_MS --- pandas/tests/scalar/period/test_asfreq.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/tests/scalar/period/test_asfreq.py b/pandas/tests/scalar/period/test_asfreq.py index 597282e10052e..0c491786370a2 100644 --- a/pandas/tests/scalar/period/test_asfreq.py +++ b/pandas/tests/scalar/period/test_asfreq.py @@ -825,6 +825,7 @@ def test_asfreq_MS(self): with pytest.raises(ValueError, match=msg): initial.asfreq(freq="MS", how="S") + msg = "MonthBegin is not supported as period frequency" with pytest.raises(ValueError, match=msg): Period("2013-01", "MS")