chiark / gitweb /
Escape: Double a couple of \ in a message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 13:16:43 +0000 (14:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 14:17:27 +0000 (15:17 +0100)
Using r'...' here seems unwise, so double the \ instead.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/08_test_patch.py

index 3ed16eba94087e744987da19efd482b4ca919876..89fbadaf6c687efb0be1e4ab1bffa5922b1a7a70 100644 (file)
@@ -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)