From: Tomas Babej Date: Sun, 22 Mar 2015 14:42:43 +0000 (+0100) Subject: tests: Compute 4 months shift in a more portable way (TW does not do daylight shifts) X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/a0e990cd0832f5ae3343ce7f2aa3e125ac6900ae?ds=inline tests: Compute 4 months shift in a more portable way (TW does not do daylight shifts) --- 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):