@@ -206,8 +206,10 @@ def test_constructor_U(self):
206206 @pytest .mark .parametrize ("freq_depr" , ["2MIN" , "2US" , "2NS" ])
207207 def test_uppercase_freq_deprecated_from_time_series (self , freq_depr ):
208208 # GH#52536, GH#54939
209- msg = f"'{ freq_depr [1 :]} ' is deprecated and will be removed in a "
210- f"future version. Please use '{ freq_depr .lower ()[1 :]} ' instead."
209+ msg = (
210+ f"'{ freq_depr [1 :]} ' is deprecated and will be removed in a "
211+ f"future version, please use '{ freq_depr .lower ()[1 :]} ' instead."
212+ )
211213
212214 with tm .assert_produces_warning (FutureWarning , match = msg ):
213215 period_range ("2020-01-01 00:00:00 00:00" , periods = 2 , freq = freq_depr )
@@ -230,8 +232,10 @@ def test_A_raises_from_time_series(self, freq):
230232 @pytest .mark .parametrize ("freq" , ["2w" ])
231233 def test_lowercase_freq_from_time_series_deprecated (self , freq ):
232234 # GH#52536, GH#54939
233- msg = f"'{ freq [1 :]} ' is deprecated and will be removed in a "
234- f"future version. Please use '{ freq .upper ()[1 :]} ' instead."
235+ msg = (
236+ f"'{ freq [1 :]} ' is deprecated and will be removed in a "
237+ f"future version, please use '{ freq .upper ()[1 :]} ' instead."
238+ )
235239
236240 with tm .assert_produces_warning (FutureWarning , match = msg ):
237241 period_range (freq = freq , start = "1/1/2001" , end = "12/1/2009" )
0 commit comments