Skip to content

Commit

Permalink
correct error message in test_asfreq_MS
Browse files Browse the repository at this point in the history
  • Loading branch information
natmokval committed Nov 6, 2023
1 parent df8acd0 commit 0de52d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/tests/scalar/period/test_asfreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 0de52d6

Please sign in to comment.