From b8c20c493eb7f74b312d79d3c15e65a1ff560949 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 22 Mar 2015 22:27:48 +0100 Subject: [PATCH] tests: Explicitly mark unicode strings used for testing --- tasklib/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.39.5