From: Ian Jackson Date: Sun, 14 Oct 2018 13:16:43 +0000 (+0100) Subject: Escape: Double a couple of \ in a message X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=abb6ed4ddf3471a2f3319799cad7ef7586662a3b;p=git-buildpackage.git Escape: Double a couple of \ in a message Using r'...' here seems unwise, so double the \ instead. Signed-off-by: Ian Jackson --- diff --git a/tests/08_test_patch.py b/tests/08_test_patch.py index 3ed16eb..89fbada 100644 --- a/tests/08_test_patch.py +++ b/tests/08_test_patch.py @@ -48,7 +48,7 @@ class TestDep3Patch(unittest.TestCase): patchfile = os.path.join(self.data_dir, "dep3-iso8859-1.patch") self.assertTrue(os.path.exists(patchfile)) p = Dep3Patch(patchfile) - self.assertEqual('Replace all -- in man page by \-\- to make lintian happy.', p.subject) + self.assertEqual('Replace all -- in man page by \\-\\- to make lintian happy.', p.subject) self.assertEqual("Roland Rosenfeld", p.author) self.assertEqual("roland@debian.org", p.email) self.assertEqual("", p.long_desc)