You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
testNextMonth fails on February 29th - it returns a date two years later instead of one (e.g. 2022-02-28 instead of 2021-02-28 with a base date of 2020-02-29).
This test reproduces the issue:
def testNextMonthLeapYear(self):
s = datetime.datetime(2020, 2, 29, self.hr, self.mn, self.sec)
t = self.cal.inc(s, year=1)
start = s.timetuple()
target = t.timetuple()
self.assertEqual(_tr(self.cal.parse('next February 28', start)),
_tr((target, pdtContext(pdtContext.ACU_MONTH | pdtContext.ACU_DAY))))
testNextMonth
fails on February 29th - it returns a date two years later instead of one (e.g. 2022-02-28 instead of 2021-02-28 with a base date of 2020-02-29).This test reproduces the issue:
Output
Initially reported by @hroncok in https://bugzilla.redhat.com/show_bug.cgi?id=1808449
The text was updated successfully, but these errors were encountered: