From 879b1edb5ca216cc6028df7bef0fdeb06b64c4d0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 9 Nov 2014 17:11:21 -0500 Subject: [PATCH] Unit Tests - Escapes / characes in search patterns, so that 'foo/' --> 'foo\/', which then allows '/foo\//'. In Python, this needs one more: '/foo\\//'. --- test/tw-1418.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/tw-1418.t b/test/tw-1418.t index 2fcaa3120..a074d47cd 100755 --- a/test/tw-1418.t +++ b/test/tw-1418.t @@ -21,8 +21,7 @@ class Test1418(TestCase): self.assertIn(description, out) def search_task_pattern(self, description): - # TODO escape any "/" in description - check comments on bug 1418 - command = ("/" + description + "/",) + command = ("/" + description.replace("/", "\\/") + "/",) code, out, err = self.t(command) self.assertIn(description, out)