From abb6ed4ddf3471a2f3319799cad7ef7586662a3b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Oct 2018 14:16:43 +0100 Subject: [PATCH] Escape: Double a couple of \ in a message Using r'...' here seems unwise, so double the \ instead. Signed-off-by: Ian Jackson --- tests/08_test_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2