X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/ca70e43e55be6a99cf5d2b94301a558c8a9ca73c..2075cf84f9472e28f3229351c85cb1086dd713c1:/tasklib/tests.py diff --git a/tasklib/tests.py b/tasklib/tests.py index 7c87400..c982a39 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -188,6 +188,16 @@ class TaskFilterTest(TasklibTest): self.assertEqual(list(tasks), [t]) def test_filter_dummy_by_modified(self): + # Older TW version does not support bumping modified + # on save + if self.tw.version < six.text_type('2.2.0'): + # Python2.6 does not support SkipTest. As a workaround + # mark the test as passed by exiting. + if getattr(unittest, 'SkipTest', None) is not None: + raise unittest.SkipTest() + else: + return + t = Task(self.tw, description="test") t.save()