Skip to content

Commit

Permalink
test_datetimes.py: fix literal string
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Jan 30, 2025
1 parent c36da3f commit fc1d9d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pandas/tests/arrays/test_datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,10 @@ def test_date_range_frequency_M_Q_Y_raises(self, freq):
@pytest.mark.parametrize("freq_depr", ["2MIN", "2nS", "2Us"])
def test_date_range_uppercase_frequency_deprecated(self, freq_depr):
# GH#9586, GH#54939
depr_msg = f"'{freq_depr[1:]}' is deprecated and will be removed in a "
f"future version. Please use '{freq_depr.lower()[1:]}' instead."
depr_msg = (
f"'{freq_depr[1:]}' is deprecated and will be removed in a "
f"future version. Please use '{freq_depr.lower()[1:]}' instead."
)

expected = pd.date_range("1/1/2000", periods=4, freq=freq_depr.lower())
with tm.assert_produces_warning(FutureWarning, match=depr_msg):
Expand Down

0 comments on commit fc1d9d8

Please sign in to comment.