@@ -308,7 +308,7 @@ def test_multiples(self):
308
308
@pytest .mark .parametrize ("month" , MONTHS )
309
309
def test_period_cons_quarterly (self , month ):
310
310
# bugs in scikits.timeseries
311
- freq = "Q-{month}" . format ( month = month )
311
+ freq = f "Q-{ month } "
312
312
exp = Period ("1989Q3" , freq = freq )
313
313
assert "1989Q3" in str (exp )
314
314
stamp = exp .to_timestamp ("D" , how = "end" )
@@ -322,7 +322,7 @@ def test_period_cons_quarterly(self, month):
322
322
@pytest .mark .parametrize ("month" , MONTHS )
323
323
def test_period_cons_annual (self , month ):
324
324
# bugs in scikits.timeseries
325
- freq = "A-{month}" . format ( month = month )
325
+ freq = f "A-{ month } "
326
326
exp = Period ("1989" , freq = freq )
327
327
stamp = exp .to_timestamp ("D" , how = "end" ) + timedelta (days = 30 )
328
328
p = Period (stamp , freq = freq )
@@ -333,8 +333,8 @@ def test_period_cons_annual(self, month):
333
333
@pytest .mark .parametrize ("day" , DAYS )
334
334
@pytest .mark .parametrize ("num" , range (10 , 17 ))
335
335
def test_period_cons_weekly (self , num , day ):
336
- daystr = "2011-02-{num}" . format ( num = num )
337
- freq = "W-{day}" . format ( day = day )
336
+ daystr = f "2011-02-{ num } "
337
+ freq = f "W-{ day } "
338
338
339
339
result = Period (daystr , freq = freq )
340
340
expected = Period (daystr , freq = "D" ).asfreq (freq )
0 commit comments