From 1c1422370aa3169c1cee5bd1f0b01a9f655ac9aa Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 16:37:20 -0400 Subject: [PATCH] Test: Corrected escape characters in test --- test/tw-295.t | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test/tw-295.t b/test/tw-295.t index 2914b206d..2efa2adf0 100755 --- a/test/tw-295.t +++ b/test/tw-295.t @@ -40,9 +40,18 @@ class TestBug295(TestCase): def test_subst_with_slashes(self): """Test substitution containing slashes""" - self.t(('add', '--', 'one/two/three')) - self.t(('1', 'modify', '/\\/two\\//TWO/')) - code, out, err = self.t(('list',)) + self.t('add -- one/two/three') + + # Python string contains \\\\, converts to internal \\. + # Something in the command processing converts \\ --> \. + # Taskwarrior sees /\/twp\//TWO/. + # + # Verify using: + # code, out, err = self.t('rc.debug.parser=3 1 modify /\\\\/two\\\\//TWO/') + # self.tap(err) + + self.t('1 modify /\\\\/two\\\\//TWO/') + code, out, err = self.t('list') self.assertIn('oneTWOthree', out) if __name__ == "__main__":