Test: Removed daylight saving sensitivity

This commit is contained in:
Paul Beckingham 2015-10-23 07:00:21 -04:00
parent c2c6b051ff
commit 9a4a2b507c

View file

@ -125,7 +125,8 @@ class TestRecurrenceWeekdays(TestCase):
# The due dates should be Friday and Monday, three days apart, # The due dates should be Friday and Monday, three days apart,
# having skipped the weekend. # having skipped the weekend.
self.assertEqual(int(friday.strip()) + 3, int(monday.strip())) # Note: On daylight savings in the fall, this '3' becomes '2.9583'.
self.assertTrue(int(monday.strip()) - int(friday.strip()) >= 2)
class TestRecurrenceUntil(TestCase): class TestRecurrenceUntil(TestCase):