From: Tomas Babej Date: Fri, 20 Feb 2015 17:54:57 +0000 (+0100) Subject: tests: Skip invalid tests for older version of TaskWarrior X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/62fd250aad64dd255b98c7c6972f39d190d18b3a tests: Skip invalid tests for older version of TaskWarrior --- diff --git a/tasklib/tests.py b/tasklib/tests.py index 7c87400..15d36cc 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -188,6 +188,11 @@ 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'): + raise unittest.SkipTest() + t = Task(self.tw, description="test") t.save()