From c564bbc0b790cf5216d8ba6dcb661bf4f02062f1 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Thu, 30 Dec 2021 19:21:01 +0000 Subject: [PATCH] fix test to pass at the end of the year --- test/recurrence.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/recurrence.t b/test/recurrence.t index 4d5b05f05..11b1ab0ae 100755 --- a/test/recurrence.t +++ b/test/recurrence.t @@ -126,7 +126,8 @@ class TestRecurrenceWeekdays(TestCase): # The due dates should be Friday and Monday, three days apart, # having skipped the weekend. # Note: On daylight savings in the fall, this '3' becomes '2.9583'. - self.assertTrue(int(monday.strip()) - int(friday.strip()) >= 2) + # Note: when monday is next year, friday+2 > 365 + self.assertTrue(int(monday.strip()) >= (int(friday.strip()) + 2) % 365) class TestRecurrenceUntil(TestCase):