From: Tomas Babej Date: Sun, 22 Mar 2015 21:27:48 +0000 (+0100) Subject: tests: Explicitly mark unicode strings used for testing X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/b8c20c493eb7f74b312d79d3c15e65a1ff560949?hp=--cc tests: Explicitly mark unicode strings used for testing --- b8c20c493eb7f74b312d79d3c15e65a1ff560949 diff --git a/tasklib/tests.py b/tasklib/tests.py index a78f25c..19950a6 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -939,12 +939,12 @@ class AnnotationTest(TasklibTest): class UnicodeTest(TasklibTest): def test_unicode_task(self): - Task(self.tw, description="†åßk").save() + Task(self.tw, description=six.u("†åßk")).save() self.tw.tasks.get() def test_filter_by_unicode_task(self): - Task(self.tw, description="†åßk").save() - tasks = self.tw.tasks.filter(description="†åßk") + Task(self.tw, description=six.u("†åßk")).save() + tasks = self.tw.tasks.filter(description=six.u("†åßk")) self.assertEqual(len(tasks), 1) def test_non_unicode_task(self):