def METHOD_NAME(self, tas_series, random):
    # bootstrap is unnecessary when in base and out of base fully overlap
    # -- GIVEN
    tas = tas_series(
        self.ar1(alpha=0.8, n=int(4 * 365.25), random=random), start="2000-01-01"
    )
    per = percentile_doy(tas, per=90)
    # -- THEN
    with pytest.raises(KeyError):
        # -- WHEN
        tg10p(tas, per, freq="YS", bootstrap=True)