Skip to content

Commit 7d2980c

Browse files
committed
fixup
1 parent b4448bd commit 7d2980c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_libs/tslibs/dtypes.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ cdef dict c_PERIOD_AND_OFFSET_DEPR_FREQSTR = {
359359
"MIN": "min",
360360
}
361361

362-
INVALID_FREQ_ERR_MSG = "Invalid frequency: {0}"
362+
cdef str INVALID_FREQ_ERR_MSG = "Invalid frequency: {0}"
363363

364364

365365
class FreqGroup(Enum):

pandas/tests/indexes/datetimes/test_datetime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_asarray_tz_aware(self):
134134
tm.assert_numpy_array_equal(result, expected)
135135

136136
@pytest.mark.parametrize("freq", ["2H", "2BH", "2S"])
137-
def test_CBH_deprecated(self, freq):
137+
def test_CBH_raises(self, freq):
138138
msg = f"Invalid frequency: {freq}"
139139

140140
with pytest.raises(ValueError, match=msg):

0 commit comments

Comments
 (0)