From a0e990cd0832f5ae3343ce7f2aa3e125ac6900ae Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 22 Mar 2015 15:42:43 +0100 Subject: [PATCH 1/1] tests: Compute 4 months shift in a more portable way (TW does not do daylight shifts) --- tasklib/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasklib/tests.py b/tasklib/tests.py index 71ee90b..f1247af 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -842,12 +842,12 @@ class DatetimeStringTest(TasklibTest): now = local_zone.localize(datetime.datetime.now()) due_date = local_zone.localize(datetime.datetime( year=now.year, - month=9, - day=3, - hour=0, + month=12, + day=31, + hour=23, minute=59, second=59 - )) + )) - datetime.timedelta(0,4 * 30 * 86400) self.assertEqual(due_date, t['due']) def test_filtering_with_string_datetime(self): -- 2.39.5