X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/ca70e43e55be6a99cf5d2b94301a558c8a9ca73c..4f562190992dbfb95af3dee41a1ba9b288690536:/tasklib/tests.py?ds=inline 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()