X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/62fd250aad64dd255b98c7c6972f39d190d18b3a..d6732e2b96e9f646510985b780d86c667b5eb879:/tasklib/tests.py?ds=inline diff --git a/tasklib/tests.py b/tasklib/tests.py index 15d36cc..c982a39 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -191,7 +191,12 @@ class TaskFilterTest(TasklibTest): # Older TW version does not support bumping modified # on save if self.tw.version < six.text_type('2.2.0'): - raise unittest.SkipTest() + # 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()