Skip to content

Commit 86d8828

Browse files
jbrockmendelalanbato
authored andcommitted
Remove incorrect kwds from DateOffset tests (pandas-dev#17486)
1 parent 486712e commit 86d8828

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/tests/tseries/test_offsets.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def offset_types(self):
111111

112112
def _get_offset(self, klass, value=1, normalize=False):
113113
# create instance from offset class
114-
if klass is FY5253 or klass is FY5253Quarter:
114+
if klass is FY5253:
115+
klass = klass(n=value, startingMonth=1, weekday=1,
116+
variation='last', normalize=normalize)
117+
elif klass is FY5253Quarter:
115118
klass = klass(n=value, startingMonth=1, weekday=1,
116119
qtr_with_extra_week=1, variation='last',
117120
normalize=normalize)
@@ -2629,7 +2632,7 @@ def test_offset(self):
26292632

26302633
def test_day_of_month(self):
26312634
dt = datetime(2007, 1, 1)
2632-
offset = MonthEnd(day=20)
2635+
offset = MonthEnd()
26332636

26342637
result = dt + offset
26352638
assert result == Timestamp(2007, 1, 31)
@@ -3678,7 +3681,7 @@ def test_onOffset(self):
36783681
1, startingMonth=8, weekday=WeekDay.THU,
36793682
qtr_with_extra_week=4)
36803683
offset_n = FY5253(weekday=WeekDay.TUE, startingMonth=12,
3681-
variation="nearest", qtr_with_extra_week=4)
3684+
variation="nearest")
36823685

36833686
tests = [
36843687
# From Wikipedia

0 commit comments

Comments
 (0)