Skip to content

Commit 29206ee

Browse files
jbrockmendeljreback
authored andcommitted
fix missing arg in asvs (#18503)
1 parent 78b24b2 commit 29206ee

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

asv_bench/benchmarks/timestamp.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,55 @@ class TimestampProperties(object):
1313
def setup(self, tz):
1414
self.ts = Timestamp('2017-08-25 08:16:14', tzinfo=tz)
1515

16-
def time_tz(self):
16+
def time_tz(self, tz):
1717
self.ts.tz
1818

19-
def time_offset(self):
19+
def time_offset(self, tz):
2020
self.ts.offset
2121

22-
def time_dayofweek(self):
22+
def time_dayofweek(self, tz):
2323
self.ts.dayofweek
2424

25-
def time_weekday_name(self):
25+
def time_weekday_name(self, tz):
2626
self.ts.weekday_name
2727

28-
def time_dayofyear(self):
28+
def time_dayofyear(self, tz):
2929
self.ts.dayofyear
3030

31-
def time_week(self):
31+
def time_week(self, tz):
3232
self.ts.week
3333

34-
def time_quarter(self):
34+
def time_quarter(self, tz):
3535
self.ts.quarter
3636

37-
def time_days_in_month(self):
37+
def time_days_in_month(self, tz):
3838
self.ts.days_in_month
3939

40-
def time_freqstr(self):
40+
def time_freqstr(self, tz):
4141
self.ts.freqstr
4242

43-
def time_is_month_start(self):
43+
def time_is_month_start(self, tz):
4444
self.ts.is_month_start
4545

46-
def time_is_month_end(self):
46+
def time_is_month_end(self, tz):
4747
self.ts.is_month_end
4848

49-
def time_is_quarter_start(self):
49+
def time_is_quarter_start(self, tz):
5050
self.ts.is_quarter_start
5151

52-
def time_is_quarter_end(self):
52+
def time_is_quarter_end(self, tz):
5353
self.ts.is_quarter_end
5454

55-
def time_is_year_start(self):
55+
def time_is_year_start(self, tz):
5656
self.ts.is_quarter_end
5757

58-
def time_is_year_end(self):
58+
def time_is_year_end(self, tz):
5959
self.ts.is_quarter_end
6060

61-
def time_is_leap_year(self):
61+
def time_is_leap_year(self, tz):
6262
self.ts.is_quarter_end
6363

64-
def time_microsecond(self):
64+
def time_microsecond(self, tz):
6565
self.ts.microsecond
6666

6767

@@ -74,13 +74,13 @@ class TimestampOps(object):
7474
def setup(self, tz):
7575
self.ts = Timestamp('2017-08-25 08:16:14', tz=tz)
7676

77-
def time_replace_tz(self):
77+
def time_replace_tz(self, tz):
7878
self.ts.replace(tzinfo=pytz.timezone('US/Eastern'))
7979

80-
def time_replace_None(self):
80+
def time_replace_None(self, tz):
8181
self.ts.replace(tzinfo=None)
8282

83-
def time_to_pydatetime(self):
83+
def time_to_pydatetime(self, tz):
8484
self.ts.to_pydatetime()
8585

8686

0 commit comments

Comments
 (0)